Class: Kumi::Core::LIR::Structs::Literal

Inherits:
Struct
  • Object
show all
Defined in:
lib/kumi/core/lir/structs/literal.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dtypeObject

Returns the value of attribute dtype



6
7
8
# File 'lib/kumi/core/lir/structs/literal.rb', line 6

def dtype
  @dtype
end

#valueObject

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_hObject



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