class Mkxms::Mssql::FunctionHandler
Public Class Methods
new(functions, node)
click to toggle source
# File lib/mkxms/mssql/function_handler.rb, line 44 def initialize(functions, node) a = node.attributes @function = Function.new(a).tap do |f| store_properties_on f functions << f end end
Public Instance Methods
handle_definition_element(parse)
click to toggle source
# File lib/mkxms/mssql/function_handler.rb, line 53 def handle_definition_element(parse); end
handle_param_property(parse)
click to toggle source
# File lib/mkxms/mssql/function_handler.rb, line 59 def handle_param_property(parse); end
handle_references_element(parse)
click to toggle source
# File lib/mkxms/mssql/function_handler.rb, line 55 def handle_references_element(parse) @function.references << %w[schema name].map {|k| parse.node.attributes[k]}.join('.') end
handle_text(text, parent_element)
click to toggle source
# File lib/mkxms/mssql/function_handler.rb, line 61 def handle_text(text, parent_element) case [parent_element.namespace, parent_element.name] when ['', 'definition'] @function.definition << text when ['', 'param-property'] a = parent_element.attributes @function.param_properties[[a['param'], a['property']]] << text end end