Exception: Pure::NoFunctionError

Inherits:
Error
  • Object
show all
Defined in:
lib/pure/error.rb

Overview

A missing function was encountered during a computation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(function_name) ⇒ NoFunctionError

:nodoc:



18
19
20
21
# File 'lib/pure/error.rb', line 18

def initialize(function_name)  #:nodoc:
  @function_name = function_name
  super(custom_message)
end

Instance Attribute Details

#function_nameObject (readonly)

:nodoc:



16
17
18
# File 'lib/pure/error.rb', line 16

def function_name
  @function_name
end

Instance Method Details

#custom_messageObject

:nodoc:



23
24
25
# File 'lib/pure/error.rb', line 23

def custom_message  #:nodoc:
  "no function named `#{function_name}'"
end