Class: Sheetah::Types::Type::SimpleCast
- Inherits:
-
Object
- Object
- Sheetah::Types::Type::SimpleCast
- Defined in:
- lib/sheetah/types/type.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(cast) ⇒ SimpleCast
constructor
A new instance of SimpleCast.
- #new ⇒ Object
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 |
#new ⇒ Object
89 90 91 |
# File 'lib/sheetah/types/type.rb', line 89 def new(**) @cast end |