Class: LoyalCore::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/loyal_core/config.rb

Instance Method Summary collapse

Instance Method Details

#avatar_serverObject



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_aliasObject



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_configObject



112
113
114
# File 'lib/loyal_core/config.rb', line 112

def sanitize_config
  SANITIZED_CONFIGS
end