Class: Kumi::Core::LIR::Structs::Literal
- Inherits:
-
Struct
- Object
- Struct
- Kumi::Core::LIR::Structs::Literal
- Defined in:
- lib/kumi/core/lir/structs/literal.rb
Instance Attribute Summary collapse
-
#dtype ⇒ Object
Returns the value of attribute dtype.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #to_h ⇒ Object
-
#value? ⇒ Boolean
include Typed.
Instance Attribute Details
#dtype ⇒ Object
Returns the value of attribute dtype
6 7 8 |
# File 'lib/kumi/core/lir/structs/literal.rb', line 6 def dtype @dtype end |
#value ⇒ Object
Returns the value of attribute value
6 7 8 |
# File 'lib/kumi/core/lir/structs/literal.rb', line 6 def value @value end |
Instance Method Details
#to_h ⇒ Object
9 |
# File 'lib/kumi/core/lir/structs/literal.rb', line 9 def to_h = { value: value, dtype: dtype } |
#value? ⇒ Boolean
include Typed
8 |
# File 'lib/kumi/core/lir/structs/literal.rb', line 8 def value? = true |