Module: TPhases::Modes::CollectMode::ClassMethods

Defined in:
lib/tphases/modes/collect_mode.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#violationsObject

Returns the value of attribute violations.



22
23
24
# File 'lib/tphases/modes/collect_mode.rb', line 22

def violations
  @violations
end

Instance Method Details

#cleaned_call_stack(call_stack) ⇒ Object



76
77
78
79
80
# File 'lib/tphases/modes/collect_mode.rb', line 76

def cleaned_call_stack(call_stack)
  defined?(::Rails) && ::Rails.respond_to?(:backtrace_cleaner) ?
    ::Rails.backtrace_cleaner.clean(call_stack, :silent) :
    call_stack
end