Class: Ambient::DSL::PlistScope

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#applicationObject (readonly)

Returns the value of attribute application.



4
5
6
# File 'lib/ambient/dsl/plist_scope.rb', line 4

def application
  @application
end

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