Class: Jkr::Plan::PlanLoader::PlanParams
- Inherits:
-
Object
- Object
- Jkr::Plan::PlanLoader::PlanParams
- Defined in:
- lib/jkr/plan.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#vars ⇒ Object
readonly
Returns the value of attribute vars.
Instance Method Summary collapse
- #[](key) ⇒ Object
- #[]=(key, val) ⇒ Object
-
#initialize ⇒ PlanParams
constructor
A new instance of PlanParams.
Constructor Details
#initialize ⇒ PlanParams
Returns a new instance of PlanParams.
167 168 169 170 |
# File 'lib/jkr/plan.rb', line 167 def initialize() @vars = {} @params = {} end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
165 166 167 |
# File 'lib/jkr/plan.rb', line 165 def params @params end |
#vars ⇒ Object (readonly)
Returns the value of attribute vars.
164 165 166 |
# File 'lib/jkr/plan.rb', line 164 def vars @vars end |
Instance Method Details
#[](key) ⇒ Object
172 173 174 |
# File 'lib/jkr/plan.rb', line 172 def [](key) @params[key] end |
#[]=(key, val) ⇒ Object
176 177 178 |
# File 'lib/jkr/plan.rb', line 176 def []=(key, val) @params[key] = val end |