Class: CreateNewGem::Templates::Bin
- Inherits:
-
Object
- Object
- CreateNewGem::Templates::Bin
- Defined in:
- lib/create_new_gem/templates.rb
Instance Method Summary collapse
-
#initialize(gemname:) ⇒ Bin
constructor
A new instance of Bin.
- #to_s ⇒ Object
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_s ⇒ Object
34 35 36 |
# File 'lib/create_new_gem/templates.rb', line 34 def to_s return @template end |