Class: ObiWan::Type::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/obi-wan/type.rb

Instance Method Summary collapse

Constructor Details

#initialize(init = {}) ⇒ Builder

Returns a new instance of Builder.



4
5
6
7
8
# File 'lib/obi-wan/type.rb', line 4

def initialize(init={})
  init.keys.each do |attr|
    self.send("#{attr}=".to_sym, init[attr])
  end
end