Class: Chirp::Smaller
- Inherits:
-
FSExpression
- Object
- FSExpression
- Chirp::Smaller
- Defined in:
- lib/chirp/fs_expression.rb
Instance Method Summary collapse
- #evaluate(path) ⇒ Object
-
#initialize(size) ⇒ Smaller
constructor
A new instance of Smaller.
Methods inherited from FSExpression
Constructor Details
#initialize(size) ⇒ Smaller
Returns a new instance of Smaller.
81 82 83 |
# File 'lib/chirp/fs_expression.rb', line 81 def initialize(size) @size = size end |
Instance Method Details
#evaluate(path) ⇒ Object
85 86 87 |
# File 'lib/chirp/fs_expression.rb', line 85 def evaluate(path) File.size(path) < @size end |