instance method
method_missing
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v3.2.22.5 PrivateSignature
method_missing(method, *arguments, &block)
Delegate to xml builder, first wrapping the element in a xhtml namespaced div element if the method and arguments indicate that an xhtml_block? is desired.
Parameters
-
methodreq -
argumentsrest -
blockblock
Source
# File actionpack/lib/action_view/helpers/atom_feed_helper.rb, line 136
def method_missing(method, *arguments, &block)
if xhtml_block?(method, arguments)
@xml.__send__(method, *arguments) do
@xml.div(:xmlns => 'http://www.w3.org/1999/xhtml') do |xhtml|
block.call(xhtml)
end
end
else
@xml.__send__(method, *arguments, &block)
end
end
Defined in actionpack/lib/action_view/helpers/atom_feed_helper.rb line 136
· View on GitHub
· Improve this page
· Find usages on GitHub