Class: ConfigDirectory

Inherits:
ConfigString show all
Defined in:
lib/helpers.rb

Instance Method Summary collapse

Methods inherited from ConfigString

#add, #clear, #initialize, #name, #set, #to_s, #value

Constructor Details

This class inherits a constructor from ConfigString

Instance Method Details

#check(string) ⇒ Object



91
92
93
94
95
# File 'lib/helpers.rb', line 91

def check(string)
  string.strip!
  string.chop! if string[-1, 1] == "/" and string.size > 1
  string
end