Exception: Pure::NoFunctionError
- Defined in:
- lib/pure/error.rb
Overview
A missing function was encountered during a computation.
Instance Attribute Summary collapse
-
#function_name ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
-
#custom_message ⇒ Object
:nodoc:.
-
#initialize(function_name) ⇒ NoFunctionError
constructor
:nodoc:.
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() end |
Instance Attribute Details
#function_name ⇒ Object (readonly)
:nodoc:
16 17 18 |
# File 'lib/pure/error.rb', line 16 def function_name @function_name end |
Instance Method Details
#custom_message ⇒ Object
:nodoc:
23 24 25 |
# File 'lib/pure/error.rb', line 23 def #:nodoc: "no function named `#{function_name}'" end |