Class: Ignition::Bundle
Instance Method Summary collapse
- #cwd ⇒ Object
-
#initialize(h) ⇒ Bundle
constructor
A new instance of Bundle.
Methods inherited from Hash
#except, #except!, #method_missing, #remove_empty, zip
Constructor Details
#initialize(h) ⇒ Bundle
Returns a new instance of Bundle.
2 3 4 5 |
# File 'lib/ignition/models/bundle.rb', line 2 def initialize(h) update(h) self.status = Ignition::BundleStatus.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Hash
Instance Method Details
#cwd ⇒ Object
7 8 9 |
# File 'lib/ignition/models/bundle.rb', line 7 def cwd eval("\"" + self["cwd"] + "\"") end |