class AnyValue::StringOfLength
Public Class Methods
new(expected_length)
click to toggle source
Calls superclass method
AnyValue::Anything::new
# File lib/any_value.rb, line 134 def initialize(expected_length) super @expected_length = expected_length end
Public Instance Methods
==(o)
click to toggle source
Calls superclass method
AnyValue::AnyString#==
# File lib/any_value.rb, line 139 def ==(o) super && o.length == @expected_length end
inspect()
click to toggle source
# File lib/any_value.rb, line 143 def inspect "#<StringOfLength #@expected_length>" end