Class: LoyalCore::Config
- Inherits:
-
Object
- Object
- LoyalCore::Config
- Defined in:
- lib/loyal_core/config.rb
Instance Method Summary collapse
- #avatar_server ⇒ Object
-
#avatar_server=(server = '') ⇒ Object
头像的server.
- #clazz_alias ⇒ Object
- #clazz_alias=(ali = {}) ⇒ Object
- #sanitize_config ⇒ Object
Instance Method Details
#avatar_server ⇒ Object
96 97 98 |
# File 'lib/loyal_core/config.rb', line 96 def avatar_server @avatar_server ||= '' end |
#avatar_server=(server = '') ⇒ Object
头像的server
92 93 94 |
# File 'lib/loyal_core/config.rb', line 92 def avatar_server= server='' @avatar_server ||= server end |
#clazz_alias ⇒ Object
108 109 110 |
# File 'lib/loyal_core/config.rb', line 108 def clazz_alias @clazz_alias ||= DEFAULT_CLAZZ_ALIAS end |
#clazz_alias=(ali = {}) ⇒ Object
100 101 102 103 104 105 106 |
# File 'lib/loyal_core/config.rb', line 100 def clazz_alias= ali={} @clazz_alias ||= ( DEFAULT_CLAZZ_ALIAS.deep_merge( ali ) ) end |
#sanitize_config ⇒ Object
112 113 114 |
# File 'lib/loyal_core/config.rb', line 112 def sanitize_config SANITIZED_CONFIGS end |