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.
163 164 165 166 167 168 169 170 171 172 |
# File 'lib/autorake/definition.rb', line 163 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 |