Class: Typed::Matcher
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Typed::Matcher
- Defined in:
- lib/typed-matcher/matcher.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, obj) ⇒ Matcher
constructor
A new instance of Matcher.
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
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/typed-matcher/matcher.rb', line 3 def type @type end |