Class: Sheetah::Types::Type::SimpleCast

Inherits:
Object
  • Object
show all
Defined in:
lib/sheetah/types/type.rb

Instance Method Summary collapse

Constructor Details

#initialize(cast) ⇒ SimpleCast



85
86
87
# File 'lib/sheetah/types/type.rb', line 85

def initialize(cast)
  @cast = cast
end

Instance Method Details

#==(other) ⇒ Object



93
94
95
# File 'lib/sheetah/types/type.rb', line 93

def ==(other)
  other.is_a?(self.class) && other.cast == cast
end

#newObject



89
90
91
# File 'lib/sheetah/types/type.rb', line 89

def new(**)
  @cast
end