class Mkxms::Mssql::ScalarTypeHandler
Public Class Methods
new(user_types, node)
click to toggle source
# File lib/mkxms/mssql/scalar_type_handler.rb, line 89 def initialize(user_types, node) a = node.attributes ScalarType.new(a).tap do |t| store_properties_on t user_types << (@type = t) end end
Public Instance Methods
handle_default_element(parse)
click to toggle source
# File lib/mkxms/mssql/scalar_type_handler.rb, line 97 def handle_default_element(parse) @type.default = Default.new(parse.node.attributes) end
handle_text(text, parent_element)
click to toggle source
# File lib/mkxms/mssql/scalar_type_handler.rb, line 101 def handle_text(text, parent_element) case [parent_element.namespace, parent_element.name] when ['', 'default'] @type.default.definition << text end end