Class: MobileIntent::Config
- Inherits:
-
Object
- Object
- MobileIntent::Config
- Defined in:
- lib/mobile_intent/config.rb
Instance Attribute Summary collapse
-
#apps ⇒ Object
readonly
Returns the value of attribute apps.
Instance Method Summary collapse
- #has?(name) ⇒ Boolean
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
5 6 7 |
# File 'lib/mobile_intent/config.rb', line 5 def initialize @apps = {} end |
Instance Attribute Details
#apps ⇒ Object (readonly)
Returns the value of attribute apps.
3 4 5 |
# File 'lib/mobile_intent/config.rb', line 3 def apps @apps end |
Instance Method Details
#has?(name) ⇒ Boolean
9 10 11 |
# File 'lib/mobile_intent/config.rb', line 9 def has?(name) @apps.has_key?(name) end |