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.



81
82
83
84
# File 'lib/bacon.rb', line 81

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

Instance Attribute Details

#count_asObject

Returns the value of attribute count_as.



79
80
81
# File 'lib/bacon.rb', line 79

def count_as
  @count_as
end