Module: Gamefic::Subplot::Host
- Defined in:
- lib/gamefic/subplot.rb
Instance Method Summary collapse
-
#branch(subplot_class, feature: nil, &block) ⇒ Subplot
Start a new subplot based on the provided class.
-
#subplots ⇒ Array<Subplot>
Get an array of all the current subplots.
Instance Method Details
#branch(subplot_class, feature: nil, &block) ⇒ Subplot
Start a new subplot based on the provided class.
28 29 30 31 32 |
# File 'lib/gamefic/subplot.rb', line 28 def branch subplot_class, feature:nil, &block subplot = subplot_class.new(self, feature: feature, &block) p_subplots.push subplot subplot end |