Class: Grueserve::Client::CommandSet

Inherits:
Object
  • Object
show all
Defined in:
lib/grueserve/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(node = nil) ⇒ CommandSet

Returns a new instance of CommandSet.



38
39
40
41
42
43
44
# File 'lib/grueserve/client.rb', line 38

def initialize(node = nil)
  unless node.nil?
    node.each_child do |child|
      self << Command.new(child)
    end
  end
end