Class: Essence::Configuration
- Inherits:
-
Object
- Object
- Essence::Configuration
- Defined in:
- lib/essence/configuration.rb
Instance Attribute Summary collapse
-
#licence_key ⇒ Object
Returns the value of attribute licence_key.
-
#phlex_components_dir ⇒ Object
readonly
Returns the value of attribute phlex_components_dir.
-
#phlex_components_path ⇒ Object
Returns the value of attribute phlex_components_path.
-
#stimulus_controllers_dir ⇒ Object
readonly
Returns the value of attribute stimulus_controllers_dir.
-
#stimulus_controllers_path ⇒ Object
Returns the value of attribute stimulus_controllers_path.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 13 14 15 16 17 |
# File 'lib/essence/configuration.rb', line 10 def initialize @licence_key = nil @phlex_components_path = "app/components" @stimulus_controllers_path = "app/javascript/controllers/essence" @phlex_components_dir = Pathname.new(File.(Dir.pwd)).join(@phlex_components_path) @stimulus_controllers_dir = Pathname.new(File.(Dir.pwd)).join(@stimulus_controllers_path) end |
Instance Attribute Details
#licence_key ⇒ Object
Returns the value of attribute licence_key.
3 4 5 |
# File 'lib/essence/configuration.rb', line 3 def licence_key @licence_key end |
#phlex_components_dir ⇒ Object (readonly)
Returns the value of attribute phlex_components_dir.
7 8 9 |
# File 'lib/essence/configuration.rb', line 7 def phlex_components_dir @phlex_components_dir end |
#phlex_components_path ⇒ Object
Returns the value of attribute phlex_components_path.
4 5 6 |
# File 'lib/essence/configuration.rb', line 4 def phlex_components_path @phlex_components_path end |
#stimulus_controllers_dir ⇒ Object (readonly)
Returns the value of attribute stimulus_controllers_dir.
8 9 10 |
# File 'lib/essence/configuration.rb', line 8 def stimulus_controllers_dir @stimulus_controllers_dir end |
#stimulus_controllers_path ⇒ Object
Returns the value of attribute stimulus_controllers_path.
5 6 7 |
# File 'lib/essence/configuration.rb', line 5 def stimulus_controllers_path @stimulus_controllers_path end |