Class: Embryo::RubyVersion
- Inherits:
-
Object
- Object
- Embryo::RubyVersion
- Defined in:
- lib/embryo/ruby_version.rb
Instance Method Summary collapse
-
#initialize(filesystem) ⇒ RubyVersion
constructor
A new instance of RubyVersion.
- #install ⇒ Object
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
#install ⇒ Object
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 |