Sha256: 32e9d04a7a0e8f3e2038d0ea4ea7750e6f05ee58aa9eb14b0a19e1e00c387e21
Contents?: true
Size: 614 Bytes
Versions: 7
Compression:
Stored size: 614 Bytes
Contents
# frozen_string_literal: true module Loxxy module Datatype # Abstract class that generalizes a value from a Lox built-in data types. # An instance acts merely as a wrapper around a Ruby representation # of the value. class BuiltinDatatype # @return [Object] The Ruby representation attr_reader :value # Constructor. Initialize a Lox value from one of its built-in data type. def initialize(aValue) @value = validated_value(aValue) end protected def validated_value(aValue) aValue end end # class end # module end # module
Version data entries
7 entries across 7 versions & 1 rubygems