Module: CSL::Extensions::Nesting

Included in:
Node
Defined in:
lib/csl/extensions.rb

Instance Method Summary collapse

Instance Method Details

#nestingObject



39
40
41
# File 'lib/csl/extensions.rb', line 39

def nesting
  name.split(/::/).inject([]) { |ns, n| ns << (ns[-1] || Object).const_get(n) }
end