Class: Guilded::Configuration
- Inherits:
-
Object
- Object
- Guilded::Configuration
- Defined in:
- lib/guilded/configuration.rb
Instance Attribute Summary collapse
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#jquery_google_url_template ⇒ Object
Returns the value of attribute jquery_google_url_template.
-
#jquery_version ⇒ Object
Returns the value of attribute jquery_version.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #jquery_google_url(version) ⇒ Object
- #local_jquery_name(version, min) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 |
# File 'lib/guilded/configuration.rb', line 8 def initialize set_defaults end |
Instance Attribute Details
#environment ⇒ Object
Returns the value of attribute environment.
4 5 6 |
# File 'lib/guilded/configuration.rb', line 4 def environment @environment end |
#jquery_google_url_template ⇒ Object
Returns the value of attribute jquery_google_url_template.
4 5 6 |
# File 'lib/guilded/configuration.rb', line 4 def jquery_google_url_template @jquery_google_url_template end |
#jquery_version ⇒ Object
Returns the value of attribute jquery_version.
4 5 6 |
# File 'lib/guilded/configuration.rb', line 4 def jquery_version @jquery_version end |
Instance Method Details
#jquery_google_url(version) ⇒ Object
12 13 14 |
# File 'lib/guilded/configuration.rb', line 12 def jquery_google_url( version ) jquery_google_url_template.gsub /\{\{version\}\}/, version end |
#local_jquery_name(version, min) ⇒ Object
16 17 18 |
# File 'lib/guilded/configuration.rb', line 16 def local_jquery_name( version, min ) "/assets/jquery-#{version}#{min ? '.min' : ''}.js" end |