Class: SimCtl::Object
- Inherits:
-
Object
- Object
- SimCtl::Object
- Defined in:
- lib/simctl/object.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(args) ⇒ Object
constructor
A new instance of Object.
Constructor Details
#initialize(args) ⇒ Object
Returns a new instance of Object.
3 4 5 6 7 |
# File 'lib/simctl/object.rb', line 3 def initialize(args) args.each do |k, v| instance_variable_set("@#{k}", v) unless v.nil? end end |