Class: AnyValue::AnyString

Inherits:
Anything show all
Defined in:
lib/any_value.rb

Direct Known Subclasses

StringMatching, StringOfLength, UpcaseString

Instance Method Summary collapse

Methods inherited from Anything

#^, #initialize, #inspect, #to_ary

Constructor Details

This class inherits a constructor from AnyValue::Anything

Instance Method Details

#==(o) ⇒ Object



103
104
105
# File 'lib/any_value.rb', line 103

def ==(o)
  o.is_a?(String)
end

#to_strObject



107
108
109
# File 'lib/any_value.rb', line 107

def to_str
  self
end