class Grumlin::TypedValue

TODO: find a better name

Public Class Methods

new(type, value) click to toggle source
# File lib/grumlin/typed_value.rb, line 6
def initialize(type, value)
  @type = type
  @value = value
end

Public Instance Methods

inspect() click to toggle source
# File lib/grumlin/typed_value.rb, line 15
def inspect
  "<#{@type}.#{@value}>"
end
Also aliased as: to_s, to_readable_bytecode
to_bytecode() click to toggle source
# File lib/grumlin/typed_value.rb, line 11
def to_bytecode
  @to_bytecode ||= { "@type": "g:#{@type}", "@value": @value }
end
to_readable_bytecode()
Alias for: inspect
to_s()
Alias for: inspect