Module: Erlectricity::Conditions
- Included in:
- Erlectricity
- Defined in:
- lib/erlectricity/condition.rb
Instance Method Summary collapse
- #any ⇒ Object
- #atom ⇒ Object
- #boolean ⇒ Object
- #hash ⇒ Object
- #list ⇒ Object
- #number ⇒ Object
- #pid ⇒ Object
- #ref ⇒ Object
- #string ⇒ Object
Instance Method Details
#any ⇒ Object
30 31 32 |
# File 'lib/erlectricity/condition.rb', line 30 def any TypeCondition.new(Object) end |
#atom ⇒ Object
26 27 28 |
# File 'lib/erlectricity/condition.rb', line 26 def atom TypeCondition.new(Symbol) end |
#boolean ⇒ Object
58 59 60 |
# File 'lib/erlectricity/condition.rb', line 58 def boolean BooleanCondition.new() end |
#hash ⇒ Object
54 55 56 |
# File 'lib/erlectricity/condition.rb', line 54 def hash HashCondition.new() end |
#list ⇒ Object
50 51 52 |
# File 'lib/erlectricity/condition.rb', line 50 def list TypeCondition.new(Array) end |
#number ⇒ Object
34 35 36 |
# File 'lib/erlectricity/condition.rb', line 34 def number TypeCondition.new(Fixnum) end |
#pid ⇒ Object
38 39 40 |
# File 'lib/erlectricity/condition.rb', line 38 def pid TypeCondition.new(Erlectricity::Pid) end |
#ref ⇒ Object
42 43 44 |
# File 'lib/erlectricity/condition.rb', line 42 def ref TypeCondition.new(Erlectricity::NewReference) end |
#string ⇒ Object
46 47 48 |
# File 'lib/erlectricity/condition.rb', line 46 def string TypeCondition.new(String) end |