Class: PlistScope

Inherits:
Object
  • Object
show all
Defined in:
lib/dsl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#helperObject (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