Module: AliveState::Configure
- Defined in:
- lib/alive_state/configure.rb
Class Attribute Summary collapse
-
.format ⇒ Object
Returns the value of attribute format.
-
.insert_middleware ⇒ Object
Returns the value of attribute insert_middleware.
-
.path ⇒ Object
Returns the value of attribute path.
-
.version ⇒ Object
Returns the value of attribute version.
Class Method Summary collapse
Class Attribute Details
.format ⇒ Object
Returns the value of attribute format.
4 5 6 |
# File 'lib/alive_state/configure.rb', line 4 def format @format end |
.insert_middleware ⇒ Object
Returns the value of attribute insert_middleware.
4 5 6 |
# File 'lib/alive_state/configure.rb', line 4 def insert_middleware @insert_middleware end |
.path ⇒ Object
Returns the value of attribute path.
4 5 6 |
# File 'lib/alive_state/configure.rb', line 4 def path @path end |
.version ⇒ Object
Returns the value of attribute version.
4 5 6 |
# File 'lib/alive_state/configure.rb', line 4 def version @version end |
Class Method Details
.keys ⇒ Object
12 13 14 |
# File 'lib/alive_state/configure.rb', line 12 def keys @keys ||= i[path format insert_middleware] end |
.setup ⇒ Object
6 7 8 9 10 |
# File 'lib/alive_state/configure.rb', line 6 def setup keys.each do |key| instance_variable_set(:"@#{key}", AliveState::Default.send(key)) end end |