class Gamefic::Chapter
Attributes
@return [Hash]
@return [Plot]
Public Class Methods
Source
# File lib/gamefic/chapter.rb, line 34 def self.bind_from_plot *methods methods.flatten.each do |method| define_method(method) { plot.send(method) } define_singleton_method(method) { Proxy::Attr.new(method) } end end
Source
# File lib/gamefic/chapter.rb, line 12 def initialize(plot, **config) @plot = plot @concluding = false @config = config configure @config.freeze super() end
@param plot [Plot]
Calls superclass method
Public Instance Methods
Source
# File lib/gamefic/chapter.rb, line 25 def conclude # @todo Void entities? @concluding = true end
Source
# File lib/gamefic/chapter.rb, line 48 def configure; end
Subclasses can override this method to handle additional configuration.
@return [void]
Source
# File lib/gamefic/chapter.rb, line 41 def included_scripts super - plot.included_scripts end
Calls superclass method