Class: ODisk::File
Constant Summary
Constants inherited from Info
Info::ERROR, Info::LOCAL, Info::NORMAL, Info::REMOTE
Instance Attribute Summary collapse
-
#size ⇒ Object
Returns the value of attribute size.
Attributes inherited from Info
#group, #master, #mode, #mtime, #name, #owner, #removed
Instance Method Summary collapse
- #eql?(o) ⇒ Boolean (also: #==)
-
#initialize(name) ⇒ File
constructor
A new instance of File.
Constructor Details
#initialize(name) ⇒ File
Returns a new instance of File.
7 8 9 10 |
# File 'lib/odisk/file.rb', line 7 def initialize(name) super(name) @size = 0 end |
Instance Attribute Details
#size ⇒ Object
Returns the value of attribute size.
5 6 7 |
# File 'lib/odisk/file.rb', line 5 def size @size end |
Instance Method Details
#eql?(o) ⇒ Boolean Also known as: ==
12 13 14 |
# File 'lib/odisk/file.rb', line 12 def eql?(o) super(o) && @size == o.size && @mtime.sec == o.mtime.sec end |