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.
157 158 159 160 |
# File 'lib/jkr/plan.rb', line 157 def initialize() @vars = {} @params = {} end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
155 156 157 |
# File 'lib/jkr/plan.rb', line 155 def params @params end |
#vars ⇒ Object (readonly)
Returns the value of attribute vars.
154 155 156 |
# File 'lib/jkr/plan.rb', line 154 def vars @vars end |
Instance Method Details
#[](key) ⇒ Object
162 163 164 |
# File 'lib/jkr/plan.rb', line 162 def [](key) @params[key] end |
#[]=(key, val) ⇒ Object
166 167 168 |
# File 'lib/jkr/plan.rb', line 166 def []=(key, val) @params[key] = val end |