Module: Hirb::Helpers
- Defined in:
- lib/hirb/helpers.rb
Overview
:nodoc:
Defined Under Namespace
Classes: AutoTable, ObjectTable, ParentChildTree, TabTable, Table, Tree, UnicodeTable, VerticalTable
Class Method Summary collapse
Class Method Details
.helper_class(klass) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/hirb/helpers.rb', line 4 def self.helper_class(klass) @helper_classes[klass.to_s] ||= begin if (helper_class = constants.find {|e| e.to_s == Util.camelize(klass.to_s)}) klass = "Hirb::Helpers::#{helper_class}" end Util.any_const_get(klass) end end |