Module: CreateNewGem

Defined in:
lib/create_new_gem.rb,
lib/create_new_gem/helptext.rb,
lib/create_new_gem/templates.rb

Defined Under Namespace

Modules: HelpText, Templates

Constant Summary collapse

@@files =

All gem files

['helptext.rb', 'templates.rb']
@@exe =

All executables

['gemnew']

Class Method Summary collapse

Class Method Details

.executablesObject



9
10
11
# File 'lib/create_new_gem.rb', line 9

def self.executables
  @@exe
end

.file_paths(relative: false) ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/create_new_gem.rb', line 13

def self.file_paths(relative:false)
  x = @@files.map do |f|
    "#{"lib/" unless relative}create_new_gem/#{f}"
  end

  if relative
    return x
  else
    return x + ['lib/create_new_gem.rb']
  end
end

.versionObject



5
6
7
# File 'lib/create_new_gem.rb', line 5

def self.version
  "0.0.2"
end