Sha256: aa19a9fc60e09ce0598cd8a658ab5538aec3554f9f6111757bb0238baea0f35c
Contents?: true
Size: 385 Bytes
Versions: 1
Compression:
Stored size: 385 Bytes
Contents
# # frozen_string_literal: true require_relative 'word' module Forthic class PushValueWord < Word attr_accessor :value # @param [String] name # @param [Object] value def initialize(name, value) super(name) @value = value end # @param [Interpreter] interp def execute(interp, _options = {}) interp.stack_push(@value) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
forthic-0.1.0 | lib/forthic/words/push_value_word.rb |