Class: Jkr::Plan::PlanLoader::PlanParams

Inherits:
Object
  • Object
show all
Defined in:
lib/jkr/plan.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePlanParams

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

#paramsObject (readonly)

Returns the value of attribute params.



155
156
157
# File 'lib/jkr/plan.rb', line 155

def params
  @params
end

#varsObject (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