Sha256: 874ea583284a2f365ff0504dd330c3c2efbe7613593af2f1f07803b2e50348f3

Contents?: true

Size: 423 Bytes

Versions: 39

Compression:

Stored size: 423 Bytes

Contents

module Generator
  class Gogogosu
    
    def initialize
      @basedir = Dir.pwd
    end
    
    # Generates a directory.
    #
    def dir name
      Dir.mkdir name unless File.file?(name) || File.exist?(name)
      if block_given?
        Dir.chdir name
        yield
        Dir.chdir '..'
      end
    end
    
    # Generates a file. Will be rendered with erb.
    #
    def file name
      
    end
    
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
gosu_extensions-0.3.8 generator/gogogosu.rb
gosu_extensions-0.3.7 generator/gogogosu.rb
gosu_extensions-0.3.6 generator/gogogosu.rb
gosu_extensions-0.3.5 generator/gogogosu.rb
gosu_extensions-0.3.4 generator/gogogosu.rb
gosu_extensions-0.3.3 generator/gogogosu.rb
gosu_extensions-0.3.2 generator/gogogosu.rb
gosu_extensions-0.3.1 generator/gogogosu.rb
gosu_extensions-0.3.0 generator/gogogosu.rb
gosu_extensions-0.2.9 generator/gogogosu.rb
gosu_extensions-0.2.8 generator/gogogosu.rb
gosu_extensions-0.2.7 generator/gogogosu.rb
gosu_extensions-0.2.6 generator/gogogosu.rb
gosu_extensions-0.2.5 generator/gogogosu.rb
gosu_extensions-0.2.4 generator/gogogosu.rb
gosu_extensions-0.2.3 generator/gogogosu.rb
gosu_extensions-0.2.2 generator/gogogosu.rb
gosu_extensions-0.2.1 generator/gogogosu.rb
gosu_extensions-0.2.0 generator/gogogosu.rb
gosu_extensions-0.1.28 generator/gogogosu.rb