Module: Github::AutoloadHelper
- Included in:
- Github, Activity, Gists, GitData, Issues, Orgs, PullRequests, Repos, Users, Validations
- Defined in:
- lib/github_api.rb
Instance Method Summary (collapse)
- - (Object) autoload_all(prefix, options)
- - (Object) lookup_constant(const_name)
- - (Object) register_constant(options)
Instance Method Details
- (Object) autoload_all(prefix, options)
39 40 41 42 43 |
# File 'lib/github_api.rb', line 39 def autoload_all(prefix, ) .each do |const_name, path| autoload const_name, File.join(prefix, path) end end |
- (Object) lookup_constant(const_name)
51 52 53 |
# File 'lib/github_api.rb', line 51 def lookup_constant(const_name) const_get const_name.upcase.to_s end |
- (Object) register_constant(options)
45 46 47 48 49 |
# File 'lib/github_api.rb', line 45 def register_constant() .each do |const_name, value| const_set const_name.upcase.to_s, value end end |