class AnyValue::StringMatching

Public Class Methods

new(pattern) click to toggle source
Calls superclass method AnyValue::Anything::new
# File lib/any_value.rb, line 152
def initialize(pattern)
  super
  @pattern = pattern
end

Public Instance Methods

==(o) click to toggle source
Calls superclass method AnyValue::AnyString#==
# File lib/any_value.rb, line 157
def ==(o)
  super && o =~ @pattern
end
inspect() click to toggle source
# File lib/any_value.rb, line 161
def inspect
  "#<StringMatching #@pattern>"
end