Class: Embryo::RubyVersion

Inherits:
Object
  • Object
show all
Defined in:
lib/embryo/ruby_version.rb

Instance Method Summary collapse

Constructor Details

#initialize(filesystem) ⇒ RubyVersion

Returns a new instance of RubyVersion.



3
4
5
# File 'lib/embryo/ruby_version.rb', line 3

def initialize(filesystem)
  @filesystem = filesystem
end

Instance Method Details

#installObject



7
8
9
10
# File 'lib/embryo/ruby_version.rb', line 7

def install
  @filesystem.write ".ruby-version", "2.1.2\n"
  @filesystem.write ".ruby-gemset", "#{@filesystem.application_name}\n"
end