Class: Yoda::Typing::Relation
- Inherits:
-
Object
- Object
- Yoda::Typing::Relation
- Defined in:
- lib/yoda/typing/relation.rb
Instance Attribute Summary collapse
-
#left ⇒ Object
readonly
Returns the value of attribute left.
-
#op ⇒ Object
readonly
Returns the value of attribute op.
-
#right ⇒ Object
readonly
Returns the value of attribute right.
Instance Method Summary collapse
-
#initialize(left, right, op = :eq) ⇒ Relation
constructor
A new instance of Relation.
Constructor Details
#initialize(left, right, op = :eq) ⇒ Relation
Returns a new instance of Relation.
8 9 10 11 12 |
# File 'lib/yoda/typing/relation.rb', line 8 def initialize(left, right, op = :eq) @left = left @right = right @op = op end |
Instance Attribute Details
#left ⇒ Object (readonly)
Returns the value of attribute left.
4 5 6 |
# File 'lib/yoda/typing/relation.rb', line 4 def left @left end |
#op ⇒ Object (readonly)
Returns the value of attribute op.
4 5 6 |
# File 'lib/yoda/typing/relation.rb', line 4 def op @op end |
#right ⇒ Object (readonly)
Returns the value of attribute right.
4 5 6 |
# File 'lib/yoda/typing/relation.rb', line 4 def right @right end |