Class: Typed::Matcher

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/typed-matcher/matcher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, obj) ⇒ Matcher

Returns a new instance of Matcher.



5
6
7
8
# File 'lib/typed-matcher/matcher.rb', line 5

def initialize type, obj
  super(obj)
  @type = type
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/typed-matcher/matcher.rb', line 3

def type
  @type
end