Sha256: f7a85b2dd2e17e3d551aa5b97f9176c1d36e27232411e69677271ab634c13827

Contents?: true

Size: 432 Bytes

Versions: 3

Compression:

Stored size: 432 Bytes

Contents

# inclue HtmlTag to import tag method

require 'set'

module HtmlTag
  extend self

  ###

  OPTS = {
    format: false
  }

  def tag *args, &block
    HtmlTag *args, &block
  end

  # forward to class only if
  def method_missing tag_name, *args, &block
    if self === HtmlTag
      # Outbound.tag(tag_name, args[0], args[1], &block)
      Proxy.new.tag(tag_name, args[0], args[1], &block)
    else
      super
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
html-tag-3.0.6 ./lib/html-tag/html_tag.rb
html-tag-3.0.5 ./lib/html-tag/html_tag.rb
html-tag-3.0.3 ./lib/html-tag/html_tag.rb