instance method method_missing

Ruby on Rails 3.1.12

Since v2.2.3 Last seen in v3.2.22.5 Private

Available in: v2.2.3 v2.3.18 v3.0.20 v3.1.12 v3.2.22.5

Signature

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

method req
arguments rest
block block
Source
# File actionpack/lib/action_view/helpers/atom_feed_helper.rb, line 138
          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 138 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionView::Helpers::AtomFeedHelper::AtomBuilder

Type at least 2 characters to search.

↑↓ navigate · open · esc close