Class: Chirp::SameSize
- Inherits:
-
FSExpression
- Object
- FSExpression
- Chirp::SameSize
- Defined in:
- lib/chirp/fs_expression.rb
Instance Method Summary collapse
- #evaluate(path) ⇒ Object
-
#initialize(size) ⇒ SameSize
constructor
A new instance of SameSize.
Methods inherited from FSExpression
Constructor Details
#initialize(size) ⇒ SameSize
Returns a new instance of SameSize.
91 92 93 |
# File 'lib/chirp/fs_expression.rb', line 91 def initialize(size) @size = size end |
Instance Method Details
#evaluate(path) ⇒ Object
95 96 97 |
# File 'lib/chirp/fs_expression.rb', line 95 def evaluate(path) File.size(path) == @size end |