Class: Contracts::List
- Inherits:
-
Array
- Object
- Array
- Contracts::List
- Defined in:
- lib/ruby_contracts/list.rb
Instance Method Summary collapse
Instance Method Details
#after_contracts ⇒ Object
7 8 9 |
# File 'lib/ruby_contracts/list.rb', line 7 def after_contracts self.class.new(select{ |contract| contract.after? }) end |
#before_contracts ⇒ Object
3 4 5 |
# File 'lib/ruby_contracts/list.rb', line 3 def before_contracts self.class.new(select{ |contract| contract.before? }) end |