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(method, label) ⇒ ProxyMethodData

Returns a new instance of ProxyMethodData.



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

def initialize(method, label)
  @method = method
  @label = label
end

Instance Attribute Details

#labelObject (readonly)

Returns the value of attribute label.



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

def label
  @label
end

#methodObject (readonly)

Returns the value of attribute method.



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

def method
  @method
end

Instance Method Details

#stack_trace_ignore_regexObject



12
13
14
# File 'lib/putter/proxy_method_data.rb', line 12

def stack_trace_ignore_regex
  STACK_TRACE_IGNORE_REGEX
end