Sha256: 002857aa9acbf0034b3ef66ff5b5b50d01d0ca748b35c7fe5dfdc85817e3abcc
Contents?: true
Size: 454 Bytes
Versions: 8
Compression:
Stored size: 454 Bytes
Contents
# frozen_string_literal: true module Gamefic # A code container for seeds and scripts. # class Block # @return [Symbol] attr_reader :type # @return [Proc] attr_reader :code # @param type [Symbol] # @param code [Proc] def initialize type, code @type = type @code = code end def script? type == :script end def seed? type == :seed end end end
Version data entries
8 entries across 8 versions & 1 rubygems