instance method
xhtml_block?
Ruby on Rails 3.1.12
Since v2.2.3 Last seen in v3.2.22.5 PrivateSignature
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
-
methodreq -
argumentsreq
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