Method: RSpec::RubyContentMatchers::HaveModule#initialize

Defined in:
lib/code_spec/matchers/have_class_module.rb

#initialize(name, postfix = nil) ⇒ HaveModule

Returns a new instance of HaveModule.



5
6
7
8
9
10
# File 'lib/code_spec/matchers/have_class_module.rb', line 5

def initialize(name, postfix=nil)
  @name = name.to_s.camelize
  super @name
  @postfix = postfix.to_s.camelize if postfix
  @type = :module
end