Class: Autorake::AddKeyVal
Instance Method Summary collapse
-
#initialize(key, val) ⇒ AddKeyVal
constructor
A new instance of AddKeyVal.
Methods inherited from Add
Constructor Details
#initialize(key, val) ⇒ AddKeyVal
Returns a new instance of AddKeyVal.
158 159 160 161 162 163 164 165 166 167 |
# File 'lib/autorake/definition.rb', line 158 def initialize key, val x, y = key.to_s.split "/" if y then x = x.to_sym else x, y = nil, x end super x, y.to_sym @val = val end |