Class: Yoda::Typing::Relation

Inherits:
Object
  • Object
show all
Defined in:
lib/yoda/typing/relation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(left, right, op = :eq) ⇒ Relation

Returns a new instance of Relation.

Parameters:



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

#leftObject (readonly)

Returns the value of attribute left.



4
5
6
# File 'lib/yoda/typing/relation.rb', line 4

def left
  @left
end

#opObject (readonly)

Returns the value of attribute op.



4
5
6
# File 'lib/yoda/typing/relation.rb', line 4

def op
  @op
end

#rightObject (readonly)

Returns the value of attribute right.



4
5
6
# File 'lib/yoda/typing/relation.rb', line 4

def right
  @right
end