Class: RoCommands::Info::RoFile
- Inherits:
-
Object
- Object
- RoCommands::Info::RoFile
- Defined in:
- lib/ro_commands/info.rb
Instance Method Summary collapse
-
#initialize(path, size) ⇒ RoFile
constructor
A new instance of RoFile.
- #path ⇒ Object
- #size ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(path, size) ⇒ RoFile
7 8 9 10 |
# File 'lib/ro_commands/info.rb', line 7 def initialize(path, size) @path = path @size = size end |
Instance Method Details
#path ⇒ Object
12 13 14 |
# File 'lib/ro_commands/info.rb', line 12 def path @path ||= nil end |
#size ⇒ Object
16 17 18 |
# File 'lib/ro_commands/info.rb', line 16 def size @size ||= nil end |
#to_s ⇒ Object
20 21 22 |
# File 'lib/ro_commands/info.rb', line 20 def to_s "size:#{(size/1024)}kb, path:#{path}" end |