class Reader
Attributes
color[R]
path[R]
prompt[R]
Public Class Methods
new()
click to toggle source
# File lib/read_config.rb, line 5 def initialize @path = ["/bin"] @prompt = "$ " @color = {"prompt" => 'white', "great" => 'red', "miss" => 'blue'} end
Public Instance Methods
setcolor(arg1, arg2)
click to toggle source
# File lib/read_config.rb, line 23 def setcolor(arg1, arg2) @color[arg1] = arg2 end
setpath(str)
click to toggle source
# File lib/read_config.rb, line 11 def setpath(str) if str.index(':') @path = str.split(':') else @path = [str] end end
setprompt(str)
click to toggle source
# File lib/read_config.rb, line 19 def setprompt(str) @prompt = str end