Module: Innate::HelperAccess
- Defined in:
- lib/innate/helper.rb
Overview
Provides access to #helper method without polluting the name-space any further.
Instance Method Summary collapse
-
#helper(*helpers) ⇒ Object
Convenience method used by Innate::Node.
Instance Method Details
#helper(*helpers) ⇒ Object
Convenience method used by Innate::Node.
Usage:
class Hi
extend Innate::HelperAccess
helper :cgi, :link, :aspect
end
This will require the helpers and call:
Hi.include(Innate::Helper::CGI)
Hi.include(Innate::Helper::Link)
Hi.include(Innate::Helper::Aspect)
36 37 38 |
# File 'lib/innate/helper.rb', line 36 def helper(*helpers) HelpersHelper.each_include(self, *helpers) end |