class Fable::ChoicePoint

Attributes

has_choice_only_content[RW]
has_choice_only_content?[RW]
has_condition[RW]
has_condition?[RW]
has_start_content[RW]
has_start_content?[RW]
invisible_default[RW]
invisible_default?[RW]
once_only[RW]
once_only?[RW]
path_on_choice[RW]

Public Instance Methods

choice_target() click to toggle source
# File lib/fable/choice_point.rb, line 34
def choice_target
  self.resolve_path(@path_on_choice).container
end
flags=(flag) click to toggle source
# File lib/fable/choice_point.rb, line 46
def flags=(flag)
  self.has_condition = (flag & 1) > 0
  self.has_start_content = (flag & 2) > 0
  self.has_choice_only_content = (flag & 4) > 0
  self.invisible_default = (flag & 8) > 0
  self.once_only = (flag & 16) > 0
end
path_on_choice=(value) click to toggle source
# File lib/fable/choice_point.rb, line 30
def path_on_choice=(value)
  @path_on_choice = value
end
path_string_on_choice() click to toggle source
# File lib/fable/choice_point.rb, line 38
def path_string_on_choice
  compact_path_string(path_on_choice)
end
path_string_on_choice=(value) click to toggle source
# File lib/fable/choice_point.rb, line 42
def path_string_on_choice=(value)
  self.path_on_choice = Path.new(value)
end
to_s() click to toggle source
# File lib/fable/choice_point.rb, line 54
def to_s
  target_line_number = debug_line_number_of_path(path_on_choice)
  target_string = path_on_choice.to_s

  if !target_line_number.nil?
    target_string = " line #{target_line_number} (#{target_string})"
  end

  return "Choice: -> #{target_string}"
end