Class: Rubysmith::Builders::Version

Inherits:
Abstract
  • Object
show all
Defined in:
lib/rubysmith/builders/version.rb

Overview

Builds project skeleton Ruby version file.

Instance Method Summary collapse

Methods inherited from Abstract

#initialize

Constructor Details

This class inherits a constructor from Rubysmith::Builders::Abstract

Instance Method Details

#callObject



11
12
13
14
15
16
# File 'lib/rubysmith/builders/version.rb', line 11

def call
  builder.call(settings.merge(template_path: "%project_name%/.ruby-version.erb"))
         .render
         .append("\n")
  true
end