Module: Boundy::Domain::Builder

Defined in:
lib/boundy/domain/builder.rb

Class Method Summary collapse

Class Method Details

.buildersObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/boundy/domain/builder.rb', line 4

def self.builders
  [
    {
      bounds: {
        from: Boundy::Bound::Infinite::Below, 
        to: Boundy::Bound
      },
      builder: Proc.new {|b,e| Boundy::Domain::Anterior.new(e) }
    },
    {
      bounds: {
        from: Boundy::Bound, 
        to: Boundy::Bound
      },
      builder: Proc.new {|b,e| Boundy::Domain::Finite.new(b,e) }
    },
    {
      bounds: {
        from: Boundy::Bound, 
        to: Boundy::Bound::Infinite::Above
      },
      builder: Proc.new {|b,e| Boundy::Domain::Posterior.new(b) }
    }
  ]
end