Class: Hamachi::Model::PositiveMatcher
- Defined in:
- lib/hamachi/model.rb
Instance Method Summary collapse
Methods inherited from Matcher
#default_value, #from_snapshot, #initialize, #initialize_options
Constructor Details
This class inherits a constructor from Hamachi::Model::Matcher
Instance Method Details
#===(value) ⇒ Object
261 262 263 |
# File 'lib/hamachi/model.rb', line 261 def ===(value) @type === value && value.positive? end |
#to_s ⇒ Object
265 266 267 |
# File 'lib/hamachi/model.rb', line 265 def to_s "positive(#{@type})" end |