Module: Fable

Defined in:
lib/fable.rb,
lib/fable/tag.rb,
lib/fable/glue.rb,
lib/fable/path.rb,
lib/fable/void.rb,
lib/fable/story.rb,
lib/fable/value.rb,
lib/fable/choice.rb,
lib/fable/divert.rb,
lib/fable/pointer.rb,
lib/fable/version.rb,
lib/fable/ink_list.rb,
lib/fable/profiler.rb,
lib/fable/container.rb,
lib/fable/call_stack.rb,
lib/fable/serializer.rb,
lib/fable/state_patch.rb,
lib/fable/story_state.rb,
lib/fable/choice_point.rb,
lib/fable/push_pop_type.rb,
lib/fable/search_result.rb,
lib/fable/debug_metadata.rb,
lib/fable/runtime_object.rb,
lib/fable/control_command.rb,
lib/fable/list_definition.rb,
lib/fable/variables_state.rb,
lib/fable/variable_reference.rb,
lib/fable/variable_assignment.rb,
lib/fable/native_function_call.rb,
lib/fable/list_definitions_origin.rb,
lib/fable/native_function_operations.rb

Defined Under Namespace

Modules: NativeFunctionOperations, PushPopType Classes: CallStack, Choice, ChoicePoint, Container, ControlCommand, DebugMetadata, Divert, DivertTargetValue, Error, FloatValue, Glue, InkList, IntValue, ListDefinition, ListDefinitionsOrigin, ListValue, NativeFunctionCall, Path, Pointer, Profiler, RuntimeObject, SearchResult, Serializer, StatePatch, Story, StoryError, StoryState, StringValue, Tag, Value, VariableAssignment, VariablePointerValue, VariableReference, VariablesState, Void

Constant Summary collapse

OrderedValueTypes =
{
  # Used in coercion
  IntValue => 0,
  FloatValue => 1,
  ListValue => 2,
  StringValue => 3,

  # Not used for coercion described above
  DivertTargetValue => 4,
  VariablePointerValue => 5
}.freeze
VERSION =
"0.5.0"

Instance Method Summary collapse

Instance Method Details

#assert!(conditional, error_message = "") ⇒ Object



9
10
11
12
13
# File 'lib/fable.rb', line 9

def assert!(conditional, error_message = "")
  if !conditional
    raise Error, error_message
  end
end