Sha256: c1ed663803e8bd66f60327bf34c4262626c96b6effcfe55d27d77b55929bbb6d
Contents?: true
Size: 367 Bytes
Versions: 3
Compression:
Stored size: 367 Bytes
Contents
# frozen_string_literal: true 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-1.0.2 | lib/basic101/scalar_reference.rb |
basic101-1.0.1 | lib/basic101/scalar_reference.rb |
basic101-1.0.0 | lib/basic101/scalar_reference.rb |