Class: Thoreau::DSL::Context::Appendix
- Inherits:
-
Object
- Object
- Thoreau::DSL::Context::Appendix
- Defined in:
- lib/thoreau/dsl/context/appendix.rb
Instance Method Summary collapse
-
#initialize(appendix_model, &appendix_block) ⇒ Appendix
constructor
A new instance of Appendix.
- #setup(name, values = {}, &block) ⇒ Object
Constructor Details
#initialize(appendix_model, &appendix_block) ⇒ Appendix
Returns a new instance of Appendix.
5 6 7 8 |
# File 'lib/thoreau/dsl/context/appendix.rb', line 5 def initialize(appendix_model, &appendix_block) @model = appendix_model self.instance_eval(&appendix_block) end |
Instance Method Details
#setup(name, values = {}, &block) ⇒ Object
10 11 12 |
# File 'lib/thoreau/dsl/context/appendix.rb', line 10 def setup name, values = {}, &block @model.add_setup(name, values, block) end |