Sha256: 0e68f025dec7bb5dbc789409e4dfbce6e4398e03b86f4ba194dcf4b80b1cf4c2
Contents?: true
Size: 716 Bytes
Versions: 1
Compression:
Stored size: 716 Bytes
Contents
# Conatins instance methods shared between # {Basic::Node} and {Basic::Query}. Part of {ActionTree::Basic} and therefore available to all ActionTree dialects. module ActionTree::Basic::Shared # The dialect that this {Node} or {Query} belongs to. # The dialect is the module namespace containing the # {Node} and {Query} classes. # # @example # a = ActionTree::Basic.new # a.is_a?(ActionTree::Basic::Node) #=> true # a.dialect #=> ActionTree::Basic # # @see ActionTree::Basic # # @return [Module] the dialect of the current node or query def dialect self.class.name.split('::')[0..-2]. inject(Kernel) do |current, next_const| current.const_get(next_const) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
action_tree-0.2.0 | lib/action_tree/basic/shared.rb |