Class: CreateNewGem::Templates::Bin

Inherits:
Object
  • Object
show all
Defined in:
lib/create_new_gem/templates.rb

Instance Method Summary collapse

Constructor Details

#initialize(gemname:) ⇒ Bin

Returns a new instance of Bin.



29
30
31
32
# File 'lib/create_new_gem/templates.rb', line 29

def initialize(gemname:)
  @template = File.read("#{File.dirname __FILE__}/templates/bin.template")
    .gsub("<<!gemname!>>", gemname)
end

Instance Method Details

#to_sObject



34
35
36
# File 'lib/create_new_gem/templates.rb', line 34

def to_s
  return @template
end