Sha256: fcfb0871be926da28b5ef75bdcae274020afeba9f063582aacf2fe40e1d69630

Contents?: true

Size: 295 Bytes

Versions: 10

Compression:

Stored size: 295 Bytes

Contents

module Reflection
  module Support
    class Home
      
      def path
        @path ||= File.expand_path(File.join(ENV['HOME'], '.reflection'))
      end
      
      def create
        unless File.exist?(self.path)
          Dir.mkdir(self.path)
        end
      end
      
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
basiszwo-reflection-0.5.1 lib/reflection/support/home.rb
reflection-0.5.0 lib/reflection/support/home.rb
reflection-0.4.6 lib/reflection/support/home.rb
reflection-0.4.5 lib/reflection/support/home.rb
reflection-0.4.4 lib/reflection/support/home.rb
reflection-0.4.3 lib/reflection/support/home.rb
reflection-0.4.1 lib/reflection/support/home.rb
reflection-0.4.0 lib/reflection/support/home.rb
reflection-0.3.1 lib/reflection/support/home.rb
reflection-0.0.2 lib/reflection/support/home.rb