Class: Mkxms::Mssql::ClrTypeHandler

Inherits:
Object
  • Object
show all
Includes:
PropertyHandler::ElementHandler
Defined in:
lib/mkxms/mssql/clr_type_handler.rb

Instance Method Summary collapse

Methods included from PropertyHandler::ElementHandler

#handle_property_element

Constructor Details

#initialize(types, node) ⇒ ClrTypeHandler

Returns a new instance of ClrTypeHandler.



81
82
83
84
85
86
87
88
89
90
# File 'lib/mkxms/mssql/clr_type_handler.rb', line 81

def initialize(types, node)
  a = node.attributes
  
  @type_info = ClrType.new(
    a['schema'],
    a['name'],
    a['assembly'],
    a['class']
  ).tap {|t| types << store_properties_on(t)}
end