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.



7
8
9
# File 'lib/render/errors.rb', line 7

def initialize(algorithm)
  self.algorithm = algorithm
end

Instance Attribute Details

#algorithmObject

Returns the value of attribute algorithm.



5
6
7
# File 'lib/render/errors.rb', line 5

def algorithm
  @algorithm
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/render/errors.rb', line 11

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