Module: Interpret::InterpretHelper
- Defined in:
- app/helpers/interpret/interpret_helper.rb
Instance Method Summary collapse
-
#interpret_show_tree(tree, origin_keys) ⇒ Object
Generates the html tree from the given keys.
- #interpret_title(title) ⇒ Object
Instance Method Details
#interpret_show_tree(tree, origin_keys) ⇒ Object
Generates the html tree from the given keys
4 5 6 7 8 9 10 11 12 |
# File 'app/helpers/interpret/interpret_helper.rb', line 4 def interpret_show_tree(tree, origin_keys) tree = tree.first[1] unless origin_keys.nil? origin_keys.split(".").each do |key| tree = tree[key] end end build_tree(tree, origin_keys) end |
#interpret_title(title) ⇒ Object
14 15 16 17 18 |
# File 'app/helpers/interpret/interpret_helper.rb', line 14 def interpret_title(title) content_for :title do title end end |