Class: Etna::Filesystem::Mock::MockStat
- Inherits:
-
Object
- Object
- Etna::Filesystem::Mock::MockStat
- Defined in:
- lib/etna/filesystem.rb
Instance Method Summary collapse
-
#initialize(io) ⇒ MockStat
constructor
A new instance of MockStat.
- #size ⇒ Object
Constructor Details
#initialize(io) ⇒ MockStat
Returns a new instance of MockStat.
505 506 507 |
# File 'lib/etna/filesystem.rb', line 505 def initialize(io) @io = io end |
Instance Method Details
#size ⇒ Object
509 510 511 |
# File 'lib/etna/filesystem.rb', line 509 def size @io.respond_to?(:length) ? @io.length : 0 end |