Sha256: d4f6342160619bcb91b9f6097f352b6601529835356ecc6708a653c9a7253e32
Contents?: true
Size: 336 Bytes
Versions: 3
Compression:
Stored size: 336 Bytes
Contents
module Basic101 class ScalarReference < Reference def eval(runtime) if runtime.function_exists?(@identifier) runtime.call_function(@identifier, []) else runtime.get_scalar(@identifier) end end def assign(runtime, value) runtime.set_scalar(@identifier, value) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
basic101-0.4.0 | lib/basic101/scalar_reference.rb |
basic101-0.2.0 | lib/basic101/scalar_reference.rb |
basic101-0.1.0 | lib/basic101/scalar_reference.rb |