Class: RailsAppVersion::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- RailsAppVersion::Railtie
- Defined in:
- lib/rails_app_version/railtie.rb
Constant Summary collapse
- CONFIG_FILE =
"app_version.yml".freeze
Instance Attribute Summary collapse
-
#app_config ⇒ Object
readonly
Returns the value of attribute app_config.
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Class Method Summary collapse
Instance Attribute Details
#app_config ⇒ Object (readonly)
Returns the value of attribute app_config.
16 17 18 |
# File 'lib/rails_app_version/railtie.rb', line 16 def app_config @app_config end |
#env ⇒ Object (readonly)
Returns the value of attribute env.
16 17 18 |
# File 'lib/rails_app_version/railtie.rb', line 16 def env @env end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
16 17 18 |
# File 'lib/rails_app_version/railtie.rb', line 16 def version @version end |
Class Method Details
.root ⇒ Object
11 12 13 |
# File 'lib/rails_app_version/railtie.rb', line 11 def root @root ||= Pathname.new(File.(File.("../../", __dir__))) end |