Module: AutoHtml
- Included in:
- AutoHtmlFor::InstanceMethods
- Defined in:
- lib/auto_html/base.rb,
lib/auto_html/filter.rb,
lib/auto_html/builder.rb
Defined Under Namespace
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.add_filter(name, &block) ⇒ Object
2 3 4 |
# File 'lib/auto_html/base.rb', line 2 def self.add_filter(name, &block) AutoHtml::Builder.add_filter(name, &block) end |
Instance Method Details
#auto_html(raw, &proc) ⇒ Object
6 7 8 9 |
# File 'lib/auto_html/base.rb', line 6 def auto_html(raw, &proc) builder = Builder.new(raw) builder.instance_eval(&proc) end |