Class: CocoapodsCatalystSupport::CatalystConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-catalyst-support/catalyst_configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCatalystConfiguration

Returns a new instance of CatalystConfiguration.


10
11
12
13
# File 'lib/cocoapods-catalyst-support/catalyst_configuration.rb', line 10

def initialize
  @ios_dependencies = Set.new
  @mac_dependencies = Set.new
end

Instance Attribute Details

#ios_dependenciesObject (readonly)

Returns the value of attribute ios_dependencies.


7
8
9
# File 'lib/cocoapods-catalyst-support/catalyst_configuration.rb', line 7

def ios_dependencies
  @ios_dependencies
end

#mac_dependenciesObject (readonly)

Returns the value of attribute mac_dependencies.


8
9
10
# File 'lib/cocoapods-catalyst-support/catalyst_configuration.rb', line 8

def mac_dependencies
  @mac_dependencies
end

Instance Method Details

#ios(name) ⇒ Object


15
16
17
18
# File 'lib/cocoapods-catalyst-support/catalyst_configuration.rb', line 15

def ios name
  mac_dependencies.delete name
  ios_dependencies << name
end

#macos(name) ⇒ Object


20
21
22
23
# File 'lib/cocoapods-catalyst-support/catalyst_configuration.rb', line 20

def macos name
  ios_dependencies.delete name
  mac_dependencies << name
end

#verbose!Object


25
26
27
# File 'lib/cocoapods-catalyst-support/catalyst_configuration.rb', line 25

def verbose!
  $verbose = true
end