Class: ExampleGroup

Inherits:
Object
  • Object
show all
Defined in:
lib/pidgin_spec/example_group.rb

Instance Method Summary collapse

Constructor Details

#initialize(des_statement, klass, &block) ⇒ ExampleGroup

Returns a new instance of ExampleGroup.



2
3
4
5
6
# File 'lib/pidgin_spec/example_group.rb', line 2

def initialize(des_statement, klass, &block)
  @des_statement = des_statement
  @klass = klass
  instance_eval(&block)
end

Instance Method Details

#e_go(spec_statement, &block) ⇒ Object Also known as: e_dey



7
8
9
10
# File 'lib/pidgin_spec/example_group.rb', line 7

def e_go(spec_statement, &block)
  Example.new(@des_statement, spec_statement, @klass, &block)
  @spec_statement = spec_statement
end