Class: Putter::ProxyMethodData

Inherits:
Object
  • Object
show all
Defined in:
lib/putter/proxy_method_data.rb

Constant Summary collapse

STACK_TRACE_IGNORE_REGEX =
/(?!.*(\.rbenv|\.rvm|\/lib\/putter\/follower))(^.*$)/

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ ProxyMethodData

Returns a new instance of ProxyMethodData.



7
8
9
10
11
12
13
# File 'lib/putter/proxy_method_data.rb', line 7

def initialize(params)
  @label = params[:label]
  @line = params[:line]
  @method = params[:method]
  @args = params[:args]
  @result = params[:result]
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



5
6
7
# File 'lib/putter/proxy_method_data.rb', line 5

def args
  @args
end

#labelObject

Returns the value of attribute label.



5
6
7
# File 'lib/putter/proxy_method_data.rb', line 5

def label
  @label
end

#lineObject

Returns the value of attribute line.



5
6
7
# File 'lib/putter/proxy_method_data.rb', line 5

def line
  @line
end

#methodObject

Returns the value of attribute method.



5
6
7
# File 'lib/putter/proxy_method_data.rb', line 5

def method
  @method
end

#resultObject

Returns the value of attribute result.



5
6
7
# File 'lib/putter/proxy_method_data.rb', line 5

def result
  @result
end

Instance Method Details

#stack_trace_ignore_regexObject



15
16
17
# File 'lib/putter/proxy_method_data.rb', line 15

def stack_trace_ignore_regex
  STACK_TRACE_IGNORE_REGEX
end