Method: Instance#initialize

Defined in:
lib/cluster/instance.rb

#initialize(*args) ⇒ Instance

Returns a new instance of Instance.



16
17
18
19
20
21
22
23
24
# File 'lib/cluster/instance.rb', line 16

def initialize(*args)
  options = args.extract_options!
  options.each do |key, value|
    func = "#{key}="
    if self.respond_to? func
      self.send func, value
    end
  end
end