Class ActionView::Helpers::InstanceTag
In: lib/haml/helpers/action_view_mods.rb
Parent: Object

Methods

Public Instance methods

[Source]

     # File lib/haml/helpers/action_view_mods.rb, line 128
128:       def content_tag(*args)
129:         html_tag = content_tag_with_haml(*args)
130:         return html_tag unless respond_to?(:error_wrapping)
131:         return error_wrapping(html_tag) if method(:error_wrapping).arity == 1
132:         return html_tag unless object.respond_to?(:errors) && object.errors.respond_to?(:on)
133:         return error_wrapping(html_tag, object.errors.on(@method_name))
134:       end

Includes TagHelper

[Source]

     # File lib/haml/helpers/action_view_mods.rb, line 120
120:       def haml_buffer
121:         @template_object.send :haml_buffer
122:       end

[Source]

     # File lib/haml/helpers/action_view_mods.rb, line 124
124:       def is_haml?
125:         @template_object.send :is_haml?
126:       end

[Validate]