Class: RSpec::Undefined::Entry
- Inherits:
-
Object
- Object
- RSpec::Undefined::Entry
- Defined in:
- lib/rspec/undefined/entry.rb
Constant Summary collapse
- ATTRS =
[:kind, :matcher, :description, :category, :expected, :actual, :matched, :location, :example_id].freeze
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Entry
constructor
A new instance of Entry.
- #to_h ⇒ Object
Constructor Details
Instance Method Details
#to_h ⇒ Object
15 16 17 |
# File 'lib/rspec/undefined/entry.rb', line 15 def to_h ATTRS.each_with_object({}) { |a, h| h[a] = instance_variable_get("@#{a}") } end |