Skip to content

Instantly share code, notes, and snippets.

@matschaffer
Created April 10, 2013 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matschaffer/5355754 to your computer and use it in GitHub Desktop.
Save matschaffer/5355754 to your computer and use it in GitHub Desktop.
# pipe/base.rb
module Pipe
class Base
def flow
end
end
end
# pipe/email_pipe.rb
require 'pipe/base'
module Pipe
class EmailPipe < Base
# additional methods
end
end
# pipe/sms_pipe.rb
require 'pipe/base'
module Pipe
class SmsPipe < Base
# additional methods
end
end
# pipe.rb
require 'pipe/email_pipe'
require 'pipe/sms_pipe'
# spec/pipe/email_pipe_spec.rb
require 'pipe/email'
include Pipe
decribe EmailPipe do
it "should do stuff" do
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment