Class: RailsGwt::UserConfigFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_gwt/user_config.rb

Instance Method Summary collapse

Instance Method Details

#[](login) ⇒ Object



4
5
6
# File 'lib/rails_gwt/user_config.rb', line 4

def []()
  UserConfig.new(.to_sym, config[.to_sym])
end

#add(login, user_config) ⇒ Object



8
9
10
# File 'lib/rails_gwt/user_config.rb', line 8

def add(, user_config)
  config[.to_sym] = user_config
end

#loginsObject



12
13
14
# File 'lib/rails_gwt/user_config.rb', line 12

def logins
  config.keys
end