Class: ExampleGroup
- Inherits:
-
Object
- Object
- ExampleGroup
- Defined in:
- lib/pidgin_spec/example_group.rb
Instance Method Summary collapse
- #e_go(spec_statement, &block) ⇒ Object (also: #e_dey)
-
#initialize(des_statement, klass, &block) ⇒ ExampleGroup
constructor
A new instance of ExampleGroup.
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 |