Class: Dockerfile::Ruby
Overview
Ruby Dockerfile Template Required Attributes: @ruby_version: Version of Ruby to use for the ruby image.
Instance Attribute Summary collapse
-
#ruby_version ⇒ Object
Returns the value of attribute ruby_version.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize ⇒ Ruby
constructor
A new instance of Ruby.
- #required_attributes ⇒ Object
Methods inherited from Base
Constructor Details
#initialize ⇒ Ruby
Returns a new instance of Ruby.
12 13 14 |
# File 'lib/dockerfile/ruby.rb', line 12 def initialize @template = dockerfile end |
Instance Attribute Details
#ruby_version ⇒ Object
Returns the value of attribute ruby_version.
10 11 12 |
# File 'lib/dockerfile/ruby.rb', line 10 def ruby_version @ruby_version end |
Instance Method Details
#required_attributes ⇒ Object
6 7 8 |
# File 'lib/dockerfile/ruby.rb', line 6 def required_attributes super + [:ruby_version] end |