Class: Rigor::RbsExtended::PredicateEffect
- Inherits:
-
Data
- Object
- Data
- Rigor::RbsExtended::PredicateEffect
- 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
-
#class_name ⇒ Object
readonly
Returns the value of attribute class_name.
-
#edge ⇒ Object
readonly
Returns the value of attribute edge.
-
#target_kind ⇒ Object
readonly
Returns the value of attribute target_kind.
-
#target_name ⇒ Object
readonly
Returns the value of attribute target_name.
Instance Method Summary collapse
Instance Attribute Details
#class_name ⇒ Object (readonly)
Returns the value of attribute class_name
41 42 43 |
# File 'lib/rigor/rbs_extended.rb', line 41 def class_name @class_name end |
#edge ⇒ Object (readonly)
Returns the value of attribute edge
41 42 43 |
# File 'lib/rigor/rbs_extended.rb', line 41 def edge @edge end |
#target_kind ⇒ Object (readonly)
Returns the value of attribute target_kind
41 42 43 |
# File 'lib/rigor/rbs_extended.rb', line 41 def target_kind @target_kind end |
#target_name ⇒ Object (readonly)
Returns the value of attribute 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
43 |
# File 'lib/rigor/rbs_extended.rb', line 43 def falsey_only? = edge == :falsey_only |
#truthy_only? ⇒ Boolean
42 |
# File 'lib/rigor/rbs_extended.rb', line 42 def truthy_only? = edge == :truthy_only |