Class: Ability::BaseChoice
- Inherits:
-
Base
show all
- Defined in:
- lib/ascension/ability.rb
Instance Attribute Summary
Attributes inherited from Base
#parent_card
Instance Method Summary
collapse
Methods inherited from Base
#call_until_nil, #choice_instance
Instance Method Details
#call(side) ⇒ Object
67
68
69
|
# File 'lib/ascension/ability.rb', line 67
def call(side)
card_choice(side).tap { |x| x.run! }
end
|
#card_choice(side) ⇒ Object
64
65
66
|
# File 'lib/ascension/ability.rb', line 64
def card_choice(side)
CardChoice.new(:ability => self, :side => side_for_card_choice(side))
end
|
#side_for_card_choice(side) ⇒ Object
61
62
63
|
# File 'lib/ascension/ability.rb', line 61
def side_for_card_choice(side)
side
end
|