Exception: Swift::Gist::CLIError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/swift/gist/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reason) ⇒ CLIError

Returns a new instance of CLIError.



8
9
10
# File 'lib/swift/gist/cli.rb', line 8

def initialize reason
  self.reason = reason
end

Instance Attribute Details

#reasonObject

Returns the value of attribute reason.



6
7
8
# File 'lib/swift/gist/cli.rb', line 6

def reason
  @reason
end