Class: NamedParameter::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (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

#backtraceObject (readonly)

Returns the value of attribute backtrace.



5
6
7
# File 'lib/named_parameter/error.rb', line 5

def backtrace
  @backtrace
end

#named_methodObject (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