class Gamefic::Props::YesOrNo

A MultipleChoice variant that only allows Yes or No.

Public Instance Methods

no?() click to toggle source
# File lib/gamefic/props/yes_or_no.rb, line 12
def no?
  selection == 'No'
end
options() click to toggle source
# File lib/gamefic/props/yes_or_no.rb, line 16
def options
  @options ||= %w[Yes No].freeze
end
yes?() click to toggle source
# File lib/gamefic/props/yes_or_no.rb, line 8
def yes?
  selection == 'Yes'
end