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.



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

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

Instance Attribute Details

#count_asObject

Returns the value of attribute count_as.



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

def count_as
  @count_as
end