Class: Nymphia::DSL::Context::DefaultParams
- Inherits:
-
Object
- Object
- Nymphia::DSL::Context::DefaultParams
- Includes:
- HostContextMethods
- Defined in:
- lib/nymphia/dsl/context/default_params.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(context, &block) ⇒ DefaultParams
constructor
A new instance of DefaultParams.
Constructor Details
#initialize(context, &block) ⇒ DefaultParams
9 10 11 12 13 14 15 16 |
# File 'lib/nymphia/dsl/context/default_params.rb', line 9 def initialize(context, &block) @context = context @result = { contents: {}, } instance_eval(&block) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Nymphia::DSL::Context::HostContextMethods
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
7 8 9 |
# File 'lib/nymphia/dsl/context/default_params.rb', line 7 def result @result end |