Module: Chirp::FSSugar

Included in:
Application, EachProcessor
Defined in:
lib/chirp/fs_expression.rb

Instance Method Summary collapse

Instance Method Details

#allObject



135
136
137
# File 'lib/chirp/fs_expression.rb', line 135

def all
  All.new
end

#bigger(size) ⇒ Object



143
144
145
# File 'lib/chirp/fs_expression.rb', line 143

def bigger(size)
  Bigger.new(size)
end

#contains(pattern) ⇒ Object



155
156
157
# File 'lib/chirp/fs_expression.rb', line 155

def contains(pattern)
  Contains.new(pattern)
end

#dir?Boolean

Returns:

  • (Boolean)


163
164
165
# File 'lib/chirp/fs_expression.rb', line 163

def dir?
  IsDir.new
end

#except(expr) ⇒ Object



171
172
173
# File 'lib/chirp/fs_expression.rb', line 171

def except(expr)
  Not.new(expr)
end

#file?Boolean

Returns:

  • (Boolean)


167
168
169
# File 'lib/chirp/fs_expression.rb', line 167

def file?
  IsFile.new
end

#length(n) ⇒ Object



159
160
161
# File 'lib/chirp/fs_expression.rb', line 159

def length(n)
  SameSize.new(n)
end

#named(name) ⇒ Object



151
152
153
# File 'lib/chirp/fs_expression.rb', line 151

def named(name)
  Named.new(name)
end

#noneObject



139
140
141
# File 'lib/chirp/fs_expression.rb', line 139

def none
  None.new
end

#smaller(size) ⇒ Object



147
148
149
# File 'lib/chirp/fs_expression.rb', line 147

def smaller(size)
  Smaller.new(size)
end