Class: StringMatcherObject

Inherits:
BasicObject
Includes:
Match
Defined in:
src/mintpress-utils/lib/mintpress-utils/proxy-object.rb

Overview

This turns all matches into string matches, ignoring type It's basic object so everythinv else "works"

Properties (Read/Write)

Properties (Read Only)

Instance Method Summary collapse

Constructor Details

#initialize(obj) ⇒ StringMatcherObject

Returns a new instance of StringMatcherObject.

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(sym, *args, &block) ⇒ Object

Instance Method Details

#<(other) ⇒ Object

#<=(other) ⇒ Object

#==(other) ⇒ Object

#>(other) ⇒ Object

#>=(other) ⇒ Object

#compare(operator, other) ⇒ Object

Support to perform <, >, <= and >= operations Currently we only support passing Integer/Float as the expected value