class Samovar::InvalidInputError
Attributes
command[R]
input[R]
Public Class Methods
new(command, input)
click to toggle source
Calls superclass method
# File lib/samovar/error.rb, line 11 def initialize(command, input) @command = command @input = input super "Could not parse token #{input.first.inspect}" end
Public Instance Methods
help?()
click to toggle source
# File lib/samovar/error.rb, line 22 def help? self.token == "--help" end
token()
click to toggle source
# File lib/samovar/error.rb, line 18 def token @input.first end