Class: RSpec::Hanami::MatchType
- Inherits:
-
Object
- Object
- RSpec::Hanami::MatchType
- Defined in:
- lib/rspec/hanami/match_type.rb
Instance Attribute Summary collapse
-
#actual ⇒ Object
readonly
Returns the value of attribute actual.
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(actual, expected) ⇒ MatchType
constructor
A new instance of MatchType.
Constructor Details
#initialize(actual, expected) ⇒ MatchType
Returns a new instance of MatchType.
6 7 8 9 |
# File 'lib/rspec/hanami/match_type.rb', line 6 def initialize(actual, expected) @actual = actual @expected = expected end |
Instance Attribute Details
#actual ⇒ Object (readonly)
Returns the value of attribute actual.
4 5 6 |
# File 'lib/rspec/hanami/match_type.rb', line 4 def actual @actual end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
4 5 6 |
# File 'lib/rspec/hanami/match_type.rb', line 4 def expected @expected end |
Instance Method Details
#call ⇒ Object
11 12 13 |
# File 'lib/rspec/hanami/match_type.rb', line 11 def call match_types? end |