Exception: Render::Errors::Generator::MalformedAlgorithm

Inherits:
StandardError
  • Object
show all
Defined in:
lib/render/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(algorithm) ⇒ MalformedAlgorithm

Returns a new instance of MalformedAlgorithm.



19
20
21
# File 'lib/render/errors.rb', line 19

def initialize(algorithm)
  self.algorithm = algorithm
end

Instance Attribute Details

#algorithmObject

Returns the value of attribute algorithm.



17
18
19
# File 'lib/render/errors.rb', line 17

def algorithm
  @algorithm
end

Instance Method Details

#to_sObject



23
24
25
# File 'lib/render/errors.rb', line 23

def to_s
  "Algorithms must respond to #call, which #{algorithm.inspect} does not."
end