Class: Ambient::DSL::PlistScope
- Inherits:
-
Object
- Object
- Ambient::DSL::PlistScope
- Defined in:
- lib/ambient/dsl/plist_scope.rb
Instance Attribute Summary collapse
-
#application ⇒ Object
readonly
Returns the value of attribute application.
-
#helper ⇒ Object
readonly
Returns the value of attribute helper.
Instance Method Summary collapse
- #configure(&block) ⇒ Object
- #entry(key, value) ⇒ Object
-
#initialize(application, path) ⇒ PlistScope
constructor
A new instance of PlistScope.
Constructor Details
#initialize(application, path) ⇒ PlistScope
Returns a new instance of PlistScope.
7 8 9 10 |
# File 'lib/ambient/dsl/plist_scope.rb', line 7 def initialize(application, path) @application = application @helper = PlistHelper.new(path) end |
Instance Attribute Details
#application ⇒ Object (readonly)
Returns the value of attribute application.
4 5 6 |
# File 'lib/ambient/dsl/plist_scope.rb', line 4 def application @application end |
#helper ⇒ Object (readonly)
Returns the value of attribute helper.
4 5 6 |
# File 'lib/ambient/dsl/plist_scope.rb', line 4 def helper @helper end |
Instance Method Details
#configure(&block) ⇒ Object
12 13 14 |
# File 'lib/ambient/dsl/plist_scope.rb', line 12 def configure(&block) instance_eval(&block) end |
#entry(key, value) ⇒ Object
16 17 18 |
# File 'lib/ambient/dsl/plist_scope.rb', line 16 def entry(key, value) helper.add_entry(key, value) end |