Class: Typisch::TypedStruct

Inherits:
Object
  • Object
show all
Includes:
Typed
Defined in:
lib/typisch/typed.rb

Instance Method Summary collapse

Methods included from Typed

included, #type, #type_check, #type_check_property

Constructor Details

#initialize(properties = {}) ⇒ TypedStruct

Returns a new instance of TypedStruct.



129
130
131
# File 'lib/typisch/typed.rb', line 129

def initialize(properties={})
  properties.each {|p,v| instance_variable_set("@#{p}", v)}
end