Class: Object
- Inherits:
- BasicObject
- Includes:
- IRB::ExtendCommandBundle
- Defined in:
- lib/redshift/redshift.rb,
lib/redshift/mixins/shell.rb,
lib/redshift/util/object-diff.rb
Overview
get rid of this?
Instance Method Summary collapse
Instance Method Details
#assert(test, *msg) ⇒ Object
61 62 63 |
# File 'lib/redshift/redshift.rb', line 61 def assert(test, *msg) raise AssertionFailure, *msg unless test end |
#diff(other, &block) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/redshift/util/object-diff.rb', line 2 def diff other, &block d = other - self if block block.call d end d end |
#filter ⇒ Object
10 11 12 |
# File 'lib/redshift/util/object-diff.rb', line 10 def filter (yield self) && self end |