| Class | Uttk::Logger::Segment |
| In: |
lib/uttk/logger/path.rb
|
| Parent: | Object |
| options | [RW] | |
| segment | [RW] |
# File lib/uttk/logger/path.rb, line 14 def initialize ( segment, options=nil ) raise if segment.is_a? Segment @segment, @options = segment, (options || {}) end
# File lib/uttk/logger/path.rb, line 24 def self.quote ( s ) s.gsub(/(?:([\/\]\[])|\\(.))/, '\\\\\1\2') end
# File lib/uttk/logger/path.rb, line 21 def == ( rhs ) rhs.is_a?(self.class) && @segment == rhs.segment && @options == rhs.options end
# File lib/uttk/logger/path.rb, line 18 def initialize_copy ( rhs ) @segment, @options = rhs.segment.try_dup, rhs.options.dup end