lib/index_for/builder.rb
def wrap_with type, content, options = {} #:nodoc:
      type_tag, type_html_options = apply_html type, options
      if type_tag
        @template.content_tag type_tag, content, type_html_options
      else
        content
      end
    end
# Gets the default tag set in IndexFor module and apply (if defined)
# around the given content. It also check for html_options in @options
# hash related to the current type.
Gets the default tag set in IndexFor module and apply (if defined)
around the given content. It also check for html_options in @options
hash related to the current type.
Gets the default tag set in IndexFor module and apply ( if defined ) around the given content . It also check for html_options in @options hash related to the current type .
def wrap_with type, content, options = {} 
      type_tag, type_html_options = apply_html type, options
      if type_tag
        @template.content_tag type_tag, content, type_html_options
      else
        content
      end
    end
def wrap_with type , content , options = { } type_tag , type_html_options = apply_html type , options if type_tag @template . content_tag type_tag , content , type_html_options else content end end
Gets the default tag set in IndexFor module and apply (if defined)
around the given content.
Gets the default tag set in IndexFor module and apply ( if defined ) around the given content .
#:nodoc:
type
content
options