Sha256: 6d0613d9bea91273e486060de9fc0e70818f74c3d5721c8667142c776e190d8f
Contents?: true
Size: 309 Bytes
Versions: 3
Compression:
Stored size: 309 Bytes
Contents
# frozen_string_literal: true module Gamefic class Callback # @param narrative [Narrative] # @param code [Proc] def initialize narrative, code @narrative = narrative @code = code end def run *args Stage.run @narrative, *args, &@code end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gamefic-3.6.0 | lib/gamefic/callback.rb |
gamefic-3.5.0 | lib/gamefic/callback.rb |
gamefic-3.4.0 | lib/gamefic/callback.rb |