class Gamefic::Block
A code container for seeds and scripts.
Attributes
code[R]
@return [Proc]
type[R]
@return [Symbol]
Public Class Methods
new(type, code)
click to toggle source
@param type [Symbol] @param code [Proc]
# File lib/gamefic/block.rb, line 15 def initialize type, code @type = type @code = code end
Public Instance Methods
script?()
click to toggle source
# File lib/gamefic/block.rb, line 20 def script? type == :script end
seed?()
click to toggle source
# File lib/gamefic/block.rb, line 24 def seed? type == :seed end