Class: RSpec::Hanami::MatchType

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/hanami/match_type.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actualObject (readonly)

Returns the value of attribute actual.



4
5
6
# File 'lib/rspec/hanami/match_type.rb', line 4

def actual
  @actual
end

#expectedObject (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

#callObject



11
12
13
# File 'lib/rspec/hanami/match_type.rb', line 11

def call
  match_types?
end