Exception: CouchShell::Commandline::ArgNotAllowedError

Inherits:
Error
  • Object
show all
Defined in:
lib/couch-shell/commandline.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arg) ⇒ ArgNotAllowedError

Returns a new instance of ArgNotAllowedError.



14
15
16
# File 'lib/couch-shell/commandline.rb', line 14

def initialize(arg)
  @arg = arg
end

Instance Attribute Details

#argObject (readonly)

Returns the value of attribute arg.



12
13
14
# File 'lib/couch-shell/commandline.rb', line 12

def arg
  @arg
end

Instance Method Details

#messageObject



18
19
20
# File 'lib/couch-shell/commandline.rb', line 18

def message
  "no argument allowed, argument `#{arg}' was given"
end