Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/html_attrs.rb

Direct Known Subclasses

HtmlAttrs

Instance Method Summary collapse

Instance Method Details

#as_html_attrsObject



111
112
113
# File 'lib/html_attrs.rb', line 111

def as_html_attrs
  HtmlAttrs.new(self)
end

#smart_merge(target) ⇒ Object



115
116
117
# File 'lib/html_attrs.rb', line 115

def smart_merge(target)
  as_html_attrs.smart_merge(target)
end

#smart_merge_all(target) ⇒ Object



119
120
121
# File 'lib/html_attrs.rb', line 119

def smart_merge_all(target)
  as_html_attrs.smart_merge_all(target)
end