Class: So::Expr

Inherits:
Object show all
Defined in:
lib/spec_object.rb

Direct Known Subclasses

And, Const, Eq, Exists, Index, Lt, Not, Received, Time, Variable

Instance Method Summary collapse

Instance Method Details

#!Object



21
22
23
# File 'lib/spec_object.rb', line 21

def !
  Not.not_(self)
end

#<(other) ⇒ Object



13
14
15
# File 'lib/spec_object.rb', line 13

def <(other)
  Lt.lt(self, other)
end

#==(other) ⇒ Object



25
26
27
# File 'lib/spec_object.rb', line 25

def ==(other)
  Eq.eq(self, other)
end

#>(other) ⇒ Object



17
18
19
# File 'lib/spec_object.rb', line 17

def >(other)
  Lt.lt(other, self)
end

#[](key) ⇒ Object



29
30
31
# File 'lib/spec_object.rb', line 29

def [](key)
  Index.index(self, key)
end

#assert_timeObject



33
34
# File 'lib/spec_object.rb', line 33

def assert_time
end

#assert_valueObject



36
37
# File 'lib/spec_object.rb', line 36

def assert_value
end

#to_so_exprObject



9
10
11
# File 'lib/spec_object.rb', line 9

def to_so_expr
  self
end