Sha256: d5a78ce9411d63a84b5292410358aaf0468ece4c613b21a4781172792c455002
Contents?: true
Size: 685 Bytes
Versions: 9
Compression:
Stored size: 685 Bytes
Contents
require 'gamefic' module Gamefic::Sdk module Debug class Action < Gamefic::Action attr_reader :source_location def initialize(command, *queries, &proc) super @executed = false caller.each { |c| if c.end_with?(":in `stage'") @source_location = c[0..-12] break end } end def execute *args super @executed = true end def executed? @executed end def standard? return false if source_location.nil? source_location.start_with?(Gamefic::Sdk::GLOBAL_IMPORT_PATH) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems