Sha256: fc8ce0ccc63d7034350ab82b4de3bfb9c9b8187da7b8660f10e01d7f2a80f877
Contents?: true
Size: 639 Bytes
Versions: 2
Compression:
Stored size: 639 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
loxxy-0.0.4 | lib/loxxy/datatype/builtin_datatype.rb |
loxxy-0.0.3 | lib/loxxy/datatype/builtin_datatype.rb |