class Fable::DivertTargetValue

Public Class Methods

new(value=nil) click to toggle source
Calls superclass method Fable::Value::new
# File lib/fable/value.rb, line 204
def initialize(value=nil)
  super(value)
end

Public Instance Methods

cast(new_type) click to toggle source
# File lib/fable/value.rb, line 208
def cast(new_type)
  if new_type == self.class
    return self
  end

  raise bad_cast_exception(new_type)
end
to_s() click to toggle source
# File lib/fable/value.rb, line 216
def to_s
  return "DivertTargetValue(#{target_path})"
end
truthy?() click to toggle source
# File lib/fable/value.rb, line 200
def truthy?
  raise Error, "Shouldn't be checking the truthiness of a divert target"
end
value_type() click to toggle source
# File lib/fable/value.rb, line 196
def value_type
  return OrderedValueTypes[DivertTargetValue]
end