Class: ActionView::Helpers::InstanceTag
- Inherits:
-
Object
- Object
- ActionView::Helpers::InstanceTag
show all
- Includes:
- Haml::Helpers
- Defined in:
- /tmp/buildd/ruby-haml-3.1.6/lib/haml/helpers/action_view_mods.rb
Constant Summary
Instance Method Summary
(collapse)
action_view?, #block_is_haml?, #capture_haml, #escape_once, #find_and_preserve, #haml_concat, #haml_indent, #haml_tag, #html_attrs, #html_escape, #init_haml_helpers, #list_of, #non_haml, #precede, #preserve, #succeed, #surround, #tab_down, #tab_up, #with_tabs
#page_class, #with_raw_haml_concat
Instance Method Details
- content_tag(*args, &block)
144
145
146
147
148
149
150
|
# File '/tmp/buildd/ruby-haml-3.1.6/lib/haml/helpers/action_view_mods.rb', line 144
def content_tag(*args, &block)
html_tag = content_tag_with_haml(*args, &block)
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
136
137
138
|
# File '/tmp/buildd/ruby-haml-3.1.6/lib/haml/helpers/action_view_mods.rb', line 136
def haml_buffer
@template_object.send :haml_buffer
end
|
- (Boolean) is_haml?
140
141
142
|
# File '/tmp/buildd/ruby-haml-3.1.6/lib/haml/helpers/action_view_mods.rb', line 140
def is_haml?
@template_object.send :is_haml?
end
|