Class: PlistScope
- Inherits:
-
Object
- Object
- PlistScope
- Defined in:
- lib/dsl.rb
Instance Attribute Summary collapse
-
#helper ⇒ Object
readonly
Returns the value of attribute helper.
Instance Method Summary collapse
- #configure(&block) ⇒ Object
- #entry(key, value) ⇒ Object
-
#initialize(path) ⇒ PlistScope
constructor
A new instance of PlistScope.
Constructor Details
#initialize(path) ⇒ PlistScope
153 154 155 |
# File 'lib/dsl.rb', line 153 def initialize(path) @helper = PlistHelper.new(path) end |
Instance Attribute Details
#helper ⇒ Object (readonly)
Returns the value of attribute helper.
151 152 153 |
# File 'lib/dsl.rb', line 151 def helper @helper end |
Instance Method Details
#configure(&block) ⇒ Object
157 158 159 |
# File 'lib/dsl.rb', line 157 def configure(&block) instance_eval(&block) end |
#entry(key, value) ⇒ Object
161 162 163 |
# File 'lib/dsl.rb', line 161 def entry(key, value) helper.add_entry(key, value) end |