Class: RoCommands::Info::RoFile
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
Returns a new instance of RoFile.
9 10 11 12 |
# File 'lib/ro_commands/info.rb', line 9 def initialize(path, size) @path = path @size = size end |
Instance Method Details
#path ⇒ Object
14 15 16 |
# File 'lib/ro_commands/info.rb', line 14 def path @path ||= nil end |
#size ⇒ Object
18 19 20 |
# File 'lib/ro_commands/info.rb', line 18 def size @size ||= nil end |
#to_s ⇒ Object
22 23 24 |
# File 'lib/ro_commands/info.rb', line 22 def to_s "size:#{(size/1024)}kb, path:#{path}" end |