Class: ActionView::Helpers::InstanceTag

Inherits:
Object
  • Object
show all
Defined in:
lib/haml/helpers/action_view_mods.rb

Instance Method Summary collapse

Instance Method Details

#content_tag(*args)



128
129
130
131
132
133
134
# File 'lib/haml/helpers/action_view_mods.rb', line 128

def content_tag(*args)
  html_tag = content_tag_with_haml(*args)
  return html_tag unless respond_to?(:error_wrapping)
  return error_wrapping(html_tag) if method(:error_wrapping).arity == 1
  return html_tag unless object.respond_to?(:errors) && object.errors.respond_to?(:on)
  return error_wrapping(html_tag, object.errors.on(@method_name))
end

#haml_buffer

Includes TagHelper



120
121
122
# File 'lib/haml/helpers/action_view_mods.rb', line 120

def haml_buffer
  @template_object.send :haml_buffer
end

#is_haml?Boolean

Returns:

  • (Boolean)


124
125
126
# File 'lib/haml/helpers/action_view_mods.rb', line 124

def is_haml?
  @template_object.send :is_haml?
end