Class: Assert::Result::Backtrace

Inherits:
Array
  • Object
show all
Defined in:
lib/assert/result.rb

Instance Method Summary collapse

Constructor Details

#initialize(value = nil) ⇒ Backtrace

Returns a new instance of Backtrace.



183
184
185
# File 'lib/assert/result.rb', line 183

def initialize(value = nil)
  super([*(value || "No backtrace")])
end

Instance Method Details

#filteredObject



189
190
191
# File 'lib/assert/result.rb', line 189

def filtered
  self.class.new(self.reject { |line| filter_out?(line) })
end

#to_sObject



187
# File 'lib/assert/result.rb', line 187

def to_s; self.join("\n"); end