null+****@clear*****
null+****@clear*****
Mon Jun 4 19:54:12 JST 2012
SUZUKI Miho 2012-06-04 19:54:12 +0900 (Mon, 04 Jun 2012) New Revision: 8ed8d98c0a0fe6836461e9a06d54f524b6696eb3 Log: add Project class Added files: lib/logaling/project.rb Added: lib/logaling/project.rb (+25 -0) 100644 =================================================================== --- /dev/null +++ lib/logaling/project.rb 2012-06-04 19:54:12 +0900 (9eb4d03) @@ -0,0 +1,25 @@ +# Copyright (C) 2012 Miho SUZUKI +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +module Logaling + class Project + attr_reader :name, :dir + + def initialize(path) + @name = File.basename(path) + @dir = File.dirname(path) + end + end +end