Module: Html2Bbcode::Html::Attributes
- Included in:
- Element
- Defined in:
- lib/html/attributes.rb
Instance Method Summary collapse
Instance Method Details
#has_html_attributes(*attrs) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/html/attributes.rb', line 4 def has_html_attributes *attrs attrs.each do |attr| define_method attr do element[attr.to_s] end end end |