Module: Tree::Separator::ClassMethods

Defined in:
lib/modular_tree/separator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#separatorObject

Returns the value of attribute separator.



17
18
19
# File 'lib/modular_tree/separator.rb', line 17

def separator
  @separator
end

Instance Method Details

#split(s) ⇒ Object



18
# File 'lib/modular_tree/separator.rb', line 18

def split(s) = s.split /#{separator}/