Module: ActionTree::DialectHelper
- Included in:
- Basic::Match, Basic::Node
- Defined in:
- lib/action_tree/dialect_helper.rb
Instance Method Summary collapse
-
#dialect ⇒ Object
access to the dialect namespace.
Instance Method Details
#dialect ⇒ Object
access to the dialect namespace
5 6 7 8 9 10 11 |
# File 'lib/action_tree/dialect_helper.rb', line 5 def dialect modules = self.class.name.split('::') modules.pop modules.inject(Kernel) do |current, next_const| current.const_get(next_const) end end |