Class: Chirp::Bigger
- Inherits:
-
FSExpression
- Object
- FSExpression
- Chirp::Bigger
- Defined in:
- lib/chirp/fs_expression.rb
Instance Method Summary collapse
- #evaluate(path) ⇒ Object
-
#initialize(size) ⇒ Bigger
constructor
A new instance of Bigger.
Methods inherited from FSExpression
Constructor Details
#initialize(size) ⇒ Bigger
Returns a new instance of Bigger.
71 72 73 |
# File 'lib/chirp/fs_expression.rb', line 71 def initialize(size) @size = size end |
Instance Method Details
#evaluate(path) ⇒ Object
75 76 77 |
# File 'lib/chirp/fs_expression.rb', line 75 def evaluate(path) File.size(path) > @size end |