Module: Erlectricity::Conditions

Included in:
Erlectricity
Defined in:
lib/erlectricity/condition.rb

Instance Method Summary collapse

Instance Method Details

#anyObject



30
31
32
# File 'lib/erlectricity/condition.rb', line 30

def any
  TypeCondition.new(Object)
end

#atomObject



26
27
28
# File 'lib/erlectricity/condition.rb', line 26

def atom
  TypeCondition.new(Symbol)
end

#booleanObject



58
59
60
# File 'lib/erlectricity/condition.rb', line 58

def boolean
  BooleanCondition.new()
end

#hashObject



54
55
56
# File 'lib/erlectricity/condition.rb', line 54

def hash
  HashCondition.new()
end

#listObject



50
51
52
# File 'lib/erlectricity/condition.rb', line 50

def list
  TypeCondition.new(Array)
end

#numberObject



34
35
36
# File 'lib/erlectricity/condition.rb', line 34

def number
  TypeCondition.new(Fixnum)
end

#pidObject



38
39
40
# File 'lib/erlectricity/condition.rb', line 38

def pid
  TypeCondition.new(Erlectricity::Pid)
end

#refObject



42
43
44
# File 'lib/erlectricity/condition.rb', line 42

def ref
  TypeCondition.new(Erlectricity::NewReference)
end

#stringObject



46
47
48
# File 'lib/erlectricity/condition.rb', line 46

def string
  TypeCondition.new(String)
end