Class: Assert::Result::Backtrace
- Inherits:
-
Array
- Object
- Array
- Assert::Result::Backtrace
- Defined in:
- lib/assert/result.rb
Instance Method Summary collapse
- #filtered ⇒ Object
-
#initialize(value = nil) ⇒ Backtrace
constructor
A new instance of Backtrace.
- #to_s ⇒ Object
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
#filtered ⇒ Object
189 190 191 |
# File 'lib/assert/result.rb', line 189 def filtered self.class.new(self.reject { |line| filter_out?(line) }) end |
#to_s ⇒ Object
187 |
# File 'lib/assert/result.rb', line 187 def to_s; self.join("\n"); end |