Class: RoCommands::Info::RoFile

Inherits:
Object
  • Object
show all
Defined in:
lib/ro_commands/info.rb

Instance Method Summary collapse

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

#pathObject



12
13
14
# File 'lib/ro_commands/info.rb', line 12

def path
	@path ||= nil
end

#sizeObject



16
17
18
# File 'lib/ro_commands/info.rb', line 16

def size
	@size ||= nil
end

#to_sObject



20
21
22
# File 'lib/ro_commands/info.rb', line 20

def to_s
  "size:#{(size/1024)}kb, path:#{path}"
end