Class: Nextgen::RailsVersion
- Inherits:
-
Struct
- Object
- Struct
- Nextgen::RailsVersion
- Defined in:
- lib/nextgen/rails_version.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#asset_pipelines ⇒ Object
Returns the value of attribute asset_pipelines.
-
#databases ⇒ Object
Returns the value of attribute databases.
-
#default_features ⇒ Object
Returns the value of attribute default_features.
-
#label ⇒ Object
Returns the value of attribute label.
-
#optional_features ⇒ Object
Returns the value of attribute optional_features.
Class Method Summary collapse
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args
8 9 10 |
# File 'lib/nextgen/rails_version.rb', line 8 def args @args end |
#asset_pipelines ⇒ Object
Returns the value of attribute asset_pipelines
8 9 10 |
# File 'lib/nextgen/rails_version.rb', line 8 def asset_pipelines @asset_pipelines end |
#databases ⇒ Object
Returns the value of attribute databases
8 9 10 |
# File 'lib/nextgen/rails_version.rb', line 8 def databases @databases end |
#default_features ⇒ Object
Returns the value of attribute default_features
8 9 10 |
# File 'lib/nextgen/rails_version.rb', line 8 def default_features @default_features end |
#label ⇒ Object
Returns the value of attribute label
8 9 10 |
# File 'lib/nextgen/rails_version.rb', line 8 def label @label end |
#optional_features ⇒ Object
Returns the value of attribute optional_features
8 9 10 |
# File 'lib/nextgen/rails_version.rb', line 8 def optional_features @optional_features end |
Class Method Details
.current ⇒ Object
19 20 21 22 23 |
# File 'lib/nextgen/rails_version.rb', line 19 def current from_yaml(:current) do |version| version.label.sub!("%%CURRENT_VERSION%%") { ::Rails.version } end end |
.edge ⇒ Object
25 26 27 |
# File 'lib/nextgen/rails_version.rb', line 25 def edge from_yaml(:edge) end |
.main ⇒ Object
29 30 31 32 33 |
# File 'lib/nextgen/rails_version.rb', line 29 def main from_yaml(:main) do |version| version.label.sub!("%%MAIN_VERSION%%") { main_version } end end |