Module: Tree::Separator
- Defined in:
- lib/modular_tree/separator.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- DEFAULT_SEPARATOR =
"."
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(other) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/modular_tree/separator.rb', line 5 def self.included(other) puts "including Separator" super(other) other.instance_variable_set(:@separator, DEFAULT_SEPARATOR) other.extend(ClassMethods) end |
Instance Method Details
#separator ⇒ Object
12 13 14 |
# File 'lib/modular_tree/separator.rb', line 12 def separator self.class.instance_variable_get(:@separator) end |