Module: Saxomattic::HookManagementMethods

Defined in:
lib/saxomattic.rb

Instance Method Summary collapse

Instance Method Details

#_capture_active_attr_methods(klass) ⇒ Object



32
33
34
35
36
# File 'lib/saxomattic.rb', line 32

def _capture_active_attr_methods(klass)
  class << klass
    alias_method :_active_attr_attribute, :attribute
  end
end

#_capture_sax_machine_methods(klass) ⇒ Object



38
39
40
41
42
43
44
45
46
# File 'lib/saxomattic.rb', line 38

def _capture_sax_machine_methods(klass)
  class << klass
    alias_method :_sax_machine_ancestor, :ancestor
    alias_method :_sax_machine_attribute, :attribute
    alias_method :_sax_machine_element, :element
    alias_method :_sax_machine_elements, :elements
    alias_method :_sax_machine_value, :value
  end
end