Class: NamedParameter::Error
- Inherits:
-
Object
- Object
- NamedParameter::Error
- Defined in:
- lib/named_parameter/error.rb
Instance Attribute Summary collapse
-
#argument_name ⇒ Object
readonly
Returns the value of attribute argument_name.
-
#backtrace ⇒ Object
readonly
Returns the value of attribute backtrace.
-
#named_method ⇒ Object
readonly
Returns the value of attribute named_method.
Instance Method Summary collapse
-
#initialize(named_method, argument_name, full_backtrace) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(named_method, argument_name, full_backtrace) ⇒ Error
Returns a new instance of Error.
7 8 9 10 11 |
# File 'lib/named_parameter/error.rb', line 7 def initialize(named_method,argument_name,full_backtrace) @named_method = named_method @argument_name = argument_name @backtrace = clean_backtrace(full_backtrace) end |
Instance Attribute Details
#argument_name ⇒ Object (readonly)
Returns the value of attribute argument_name.
4 5 6 |
# File 'lib/named_parameter/error.rb', line 4 def argument_name @argument_name end |
#backtrace ⇒ Object (readonly)
Returns the value of attribute backtrace.
5 6 7 |
# File 'lib/named_parameter/error.rb', line 5 def backtrace @backtrace end |
#named_method ⇒ Object (readonly)
Returns the value of attribute named_method.
3 4 5 |
# File 'lib/named_parameter/error.rb', line 3 def named_method @named_method end |