Exception: Render::Errors::Generator::MalformedAlgorithm
- Inherits:
-
StandardError
- Object
- StandardError
- Render::Errors::Generator::MalformedAlgorithm
- Defined in:
- lib/render/errors.rb
Instance Attribute Summary collapse
-
#algorithm ⇒ Object
Returns the value of attribute algorithm.
Instance Method Summary collapse
-
#initialize(algorithm) ⇒ MalformedAlgorithm
constructor
A new instance of MalformedAlgorithm.
- #to_s ⇒ Object
Constructor Details
#initialize(algorithm) ⇒ MalformedAlgorithm
Returns a new instance of MalformedAlgorithm.
7 8 9 |
# File 'lib/render/errors.rb', line 7 def initialize(algorithm) self.algorithm = algorithm end |
Instance Attribute Details
#algorithm ⇒ Object
Returns the value of attribute algorithm.
5 6 7 |
# File 'lib/render/errors.rb', line 5 def algorithm @algorithm end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/render/errors.rb', line 11 def to_s "Algorithms must respond to #call, which #{algorithm.inspect} does not." end |