Class: Essence::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/essence/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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.expand_path(Dir.pwd)).join(@phlex_components_path)
  @stimulus_controllers_dir = Pathname.new(File.expand_path(Dir.pwd)).join(@stimulus_controllers_path)
end

Instance Attribute Details

#licence_keyObject

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_dirObject (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_pathObject

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_dirObject (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_pathObject

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