Exception: Bacon::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/bacon.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(count_as, message) ⇒ Error

Returns a new instance of Error.



127
128
129
130
# File 'lib/bacon.rb', line 127

def initialize(count_as, message)
  @count_as = count_as
  super message
end

Instance Attribute Details

#count_asObject

Returns the value of attribute count_as.



125
126
127
# File 'lib/bacon.rb', line 125

def count_as
  @count_as
end