class CIDE::ConfigFileLoader::Path

Attributes

to_s[R]

Public Class Methods

new(str) click to toggle source
# File lib/cide/config_file_loader.rb, line 5
def initialize(str)
  @to_s = str.to_s
end

Public Instance Methods

append(value) click to toggle source
# File lib/cide/config_file_loader.rb, line 9
def append(value)
  self.class.new(
    @to_s + (value.is_a?(Integer) ? "[#{value}]" : ".#{value}"),
  )
end