class T::Private::Types::StringHolder
Holds a string. Useful for showing type aliases in error messages
Attributes
string[R]
Public Class Methods
new(string)
click to toggle source
# File lib/types/private/types/string_holder.rb, line 8 def initialize(string) @string = string end
Public Instance Methods
name()
click to toggle source
@override Base
# File lib/types/private/types/string_holder.rb, line 13 def name string end
valid?(obj)
click to toggle source
@override Base
# File lib/types/private/types/string_holder.rb, line 18 def valid?(obj) false end
Private Instance Methods
subtype_of_single?(other)
click to toggle source
@override Base
# File lib/types/private/types/string_holder.rb, line 23 def subtype_of_single?(other) false end