module HtmlTag

inclue HtmlTag to import tag method

Public Instance Methods

method_missing(tag_name, *args, &block) click to toggle source

forward to class only if

Calls superclass method
# File lib/html-tag/html_tag.rb, line 11
def method_missing tag_name, *args, &block
  if self === HtmlTag
    ::HtmlTagBuilder.tag(tag_name, args[0], args[1], &block)
  else
    super
  end
end
tag() click to toggle source
# File lib/html-tag/html_tag.rb, line 6
def tag
  ::HtmlTagBuilder
end