Class: Rigor::RbsExtended::PredicateEffect

Inherits:
Data
  • Object
show all
Defined in:
lib/rigor/rbs_extended.rb

Overview

Returned for ‘predicate-if-true` / `predicate-if-false`. `target_kind` is `:parameter` (with `target_name` the Ruby parameter symbol) or `:self`.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#class_nameObject (readonly)

Returns the value of attribute class_name

Returns:

  • (Object)

    the current value of class_name



41
42
43
# File 'lib/rigor/rbs_extended.rb', line 41

def class_name
  @class_name
end

#edgeObject (readonly)

Returns the value of attribute edge

Returns:

  • (Object)

    the current value of edge



41
42
43
# File 'lib/rigor/rbs_extended.rb', line 41

def edge
  @edge
end

#target_kindObject (readonly)

Returns the value of attribute target_kind

Returns:

  • (Object)

    the current value of target_kind



41
42
43
# File 'lib/rigor/rbs_extended.rb', line 41

def target_kind
  @target_kind
end

#target_nameObject (readonly)

Returns the value of attribute target_name

Returns:

  • (Object)

    the current value of target_name



41
42
43
# File 'lib/rigor/rbs_extended.rb', line 41

def target_name
  @target_name
end

Instance Method Details

#falsey_only?Boolean

Returns:

  • (Boolean)


43
# File 'lib/rigor/rbs_extended.rb', line 43

def falsey_only? = edge == :falsey_only

#truthy_only?Boolean

Returns:

  • (Boolean)


42
# File 'lib/rigor/rbs_extended.rb', line 42

def truthy_only? = edge == :truthy_only