Class: Ego::Options

Inherits:
Object
  • Object
show all
Defined in:
lib/ego/options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Options

Returns a new instance of Options.



13
14
15
16
17
18
# File 'lib/ego/options.rb', line 13

def initialize(argv)
  @mode = :interpret
  @verbose = false
  parse(argv)
  @query = argv.join(" ")
end

Instance Attribute Details

#modeObject (readonly)

Returns the value of attribute mode.



6
7
8
# File 'lib/ego/options.rb', line 6

def mode
  @mode
end

#queryObject (readonly)

Returns the value of attribute query.



6
7
8
# File 'lib/ego/options.rb', line 6

def query
  @query
end

#robot_nameObject (readonly)

Returns the value of attribute robot_name.



6
7
8
# File 'lib/ego/options.rb', line 6

def robot_name
  @robot_name
end

#usageObject (readonly)

Returns the value of attribute usage.



6
7
8
# File 'lib/ego/options.rb', line 6

def usage
  @usage
end

#usage_errorObject (readonly)

Returns the value of attribute usage_error.



6
7
8
# File 'lib/ego/options.rb', line 6

def usage_error
  @usage_error
end

#verboseObject (readonly)

Returns the value of attribute verbose.



6
7
8
# File 'lib/ego/options.rb', line 6

def verbose
  @verbose
end