Class: RailsStatic::Config
- Inherits:
-
Object
- Object
- RailsStatic::Config
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/rails-static/config.rb
Instance Attribute Summary collapse
-
#extension ⇒ Object
Returns the value of attribute extension.
-
#index ⇒ Object
Returns the value of attribute index.
-
#routes ⇒ Object
Returns the value of attribute routes.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
9 10 11 12 13 |
# File 'lib/rails-static/config.rb', line 9 def initialize self.index = 'index' self.routes = ['/'] self.extension = '' end |
Instance Attribute Details
#extension ⇒ Object
Returns the value of attribute extension.
7 8 9 |
# File 'lib/rails-static/config.rb', line 7 def extension @extension end |
#index ⇒ Object
Returns the value of attribute index.
5 6 7 |
# File 'lib/rails-static/config.rb', line 5 def index @index end |
#routes ⇒ Object
Returns the value of attribute routes.
6 7 8 |
# File 'lib/rails-static/config.rb', line 6 def routes @routes end |