instance method xhtml_block?

Ruby on Rails 3.2.22.5

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

xhtml_block?(method, arguments)

True if the method name matches one of the five elements defined in the Atom spec as potentially containing XHTML content and if :type => ‘xhtml’ is, in fact, specified.

Parameters

method req
arguments req
Source
# File actionpack/lib/action_view/helpers/atom_feed_helper.rb, line 153
          def xhtml_block?(method, arguments)
            if XHTML_TAG_NAMES.include?(method.to_s)
              last = arguments.last
              last.is_a?(Hash) && last[:type].to_s == 'xhtml'
            end
          end

Defined in actionpack/lib/action_view/helpers/atom_feed_helper.rb line 153 · 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