Module: Domain::Factory
- Included in:
- Domain
- Defined in:
- lib/domain/factory.rb
Instance Method Summary collapse
-
#sbyc(super_domain = Object, &pred) ⇒ Class
Creates a domain through specialization by constraint.
-
#scalar(*component_names) ⇒ Class
Factors a scalar domain.
-
#union(*sub_domains) ⇒ Class
Factors a union domain.
Instance Method Details
#sbyc(super_domain = Object, &pred) ⇒ Class
Creates a domain through specialization by constraint
19 20 21 |
# File 'lib/domain/factory.rb', line 19 def sbyc(super_domain = Object, &pred) Class.new(super_domain){ extend SByC.new(super_domain, pred) } end |