null+****@clear*****
null+****@clear*****
Mon Jun 11 11:21:34 JST 2012
SUZUKI Miho 2012-06-11 11:21:34 +0900 (Mon, 11 Jun 2012) New Revision: 524dc894cdc63a82adb62b06456804fd7ff83c47 Log: Change instance variable from @name, @dir to @path Modified files: lib/logaling/project.rb Modified: lib/logaling/project.rb (+5 -4) =================================================================== --- lib/logaling/project.rb 2012-06-08 19:17:40 +0900 (9eb4d03) +++ lib/logaling/project.rb 2012-06-11 11:21:34 +0900 (98c6771) @@ -15,11 +15,12 @@ module Logaling class Project - attr_reader :name, :dir - def initialize(path) - @name = File.basename(path) - @dir = File.dirname(path) + @path = path + end + + def name + File.basename(@path) end end end