Class: Typisch::TypedStruct
- Inherits:
-
Object
- Object
- Typisch::TypedStruct
- Includes:
- Typed
- Defined in:
- lib/typisch/typed.rb
Instance Method Summary collapse
-
#initialize(properties = {}) ⇒ TypedStruct
constructor
A new instance of TypedStruct.
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 |