[logaling-commit] logaling/logaling-command [master] add Project class

Back to archive index

null+****@clear***** null+****@clear*****
Thu Jun 28 12:02:16 JST 2012


SUZUKI Miho	2012-06-04 19:54:12 +0900 (Mon, 04 Jun 2012)

  New Revision: 8ed8d98c0a0fe6836461e9a06d54f524b6696eb3
  https://github.com/logaling/logaling-command/commit/8ed8d98c0a0fe6836461e9a06d54f524b6696eb3

  Merged 7228757: Merge pull request #60 from logaling/refactor-structure

  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
-------------- next part --------------
An HTML attachment was scrubbed...
Download 



More information about the logaling-commit mailing list
Back to archive index