Class: Slick::Helper

Inherits:
Object show all
Extended by:
Registry
Includes:
Helpers
Defined in:
lib/slick/helper.rb

Constant Summary

Constants included from Helpers

Slick::Helpers::SELF_CLOSING_TAGS, Slick::Helpers::TAGS, Slick::Helpers::TEXT_ONLY_TAGS

Instance Attribute Summary

Attributes included from Registry

#name

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Registry

create, for, register, registered?, registered_classes

Methods included from Helpers

#html_tag, #indent, #line, #text

Class Method Details

.register(name) ⇒ Object



11
12
13
14
# File 'lib/slick/helper.rb', line 11

def register(name)
    super
    Slick::Helpers.class_eval("def #{name}(*args, &block); ::Slick::Helper.create(\"#{name}\").call(*args, &block); end")
end

Instance Method Details

#call(*args, &block) ⇒ Object



20
21
22
# File 'lib/slick/helper.rb', line 20

def call(*args, &block)

end