Class: Chirp::FSExpression

Inherits:
Object
  • Object
show all
Defined in:
lib/chirp/fs_expression.rb

Direct Known Subclasses

All, And, Bigger, Contains, IsDir, IsFile, Named, None, Not, Or, SameSize, Smaller

Instance Method Summary collapse

Instance Method Details

#&(other) ⇒ Object



5
6
7
# File 'lib/chirp/fs_expression.rb', line 5

def &(other)
  And.new(self, other)
end

#|(other) ⇒ Object



9
10
11
# File 'lib/chirp/fs_expression.rb', line 9

def |(other)
  Or.new(self, other)
end

#~Object



13
14
15
# File 'lib/chirp/fs_expression.rb', line 13

def ~
  Not.new(self)
end