Class: Application
- Inherits:
-
Object
- Object
- Application
- Includes:
- Singleton
- Defined in:
- lib/teuton-get/application.rb
Constant Summary collapse
- CONFIGFILE =
"repos.ini"
- INDEXFILENAME =
"tt-repo.yaml"
- INFOFILENAME =
"tt-info.yaml"
- MAGICNUMBER =
999
- SEPARATOR =
":"
Instance Method Summary collapse
- #get(key) ⇒ Object
-
#initialize ⇒ Application
constructor
A new instance of Application.
Constructor Details
#initialize ⇒ Application
Returns a new instance of Application.
13 14 15 16 |
# File 'lib/teuton-get/application.rb', line 13 def initialize @env = Environment.new init_params end |
Instance Method Details
#get(key) ⇒ Object
18 19 20 21 22 |
# File 'lib/teuton-get/application.rb', line 18 def get(key) return @env.get(key) if key.instance_of? String @params[key] || "NODATA" end |