Class: XmlNodeList
- Inherits:
-
Array
show all
- Defined in:
- lib/action_controller/vendor/xml_node.rb
Overview
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
93
94
95
96
|
# File 'lib/action_controller/vendor/xml_node.rb', line 93
def method_missing(name, *args)
name = name.to_s
self[0].__send__(name, *args)
end
|
Instance Method Details
85
86
87
|
# File 'lib/action_controller/vendor/xml_node.rb', line 85
def [](i)
i.is_a?(String) ? super(0)[i] : super(i)
end
|
#[]=(i, value) ⇒ Object
89
90
91
|
# File 'lib/action_controller/vendor/xml_node.rb', line 89
def []=(i, value)
i.is_a?(String) ? self[0][i] = value : super(i, value)
end
|