class FilePath
Attributes
filepath[R]
id[R]
Public Class Methods
new(filepath)
click to toggle source
# File lib/filepath.rb, line 4 def initialize filepath @id = get_id @filepath = filepath end
Public Instance Methods
get_id()
click to toggle source
# File lib/filepath.rb, line 9 def get_id @id = @@count @@count += 1 end
to_s()
click to toggle source
# File lib/filepath.rb, line 14 def to_s str = "" str << "#{@id}. " str << "#{@filepath}".rjust(5) + ": " end