Method: Steep::ModuleName#components
- Defined in:
- lib/steep/module_name.rb
#components ⇒ Object
93 94 95 96 97 98 99 100 101 |
# File 'lib/steep/module_name.rb', line 93 def components name.split(/::/).map.with_index {|s, index| if index == 0 && absolute? self.class.parse(s).absolute! else self.class.parse(s) end } end |