Class: Xcodeproj::XCScheme::AbstractSchemeAction

Inherits:
XMLElementWrapper show all
Defined in:
lib/xcodeproj/scheme/abstract_scheme_action.rb

Overview

This abstract class aims to be the base class for every XxxAction class that have a #build_configuration attribute

Instance Attribute Summary

Attributes inherited from XMLElementWrapper

#xml_element

Instance Method Summary collapse

Methods inherited from XMLElementWrapper

#to_s

Instance Method Details

#build_configurationString

Returns The build configuration associated with this action (usually either ‘Debug’ or ‘Release’).

Returns:

  • (String)

    The build configuration associated with this action (usually either ‘Debug’ or ‘Release’)



15
16
17
# File 'lib/xcodeproj/scheme/abstract_scheme_action.rb', line 15

def build_configuration
  @xml_element.attributes['buildConfiguration']
end

#build_configuration=(config_name) ⇒ Object

Parameters:

  • config_name (String)

    The build configuration to associate with this action (usually either ‘Debug’ or ‘Release’)



23
24
25
# File 'lib/xcodeproj/scheme/abstract_scheme_action.rb', line 23

def build_configuration=(config_name)
  @xml_element.attributes['buildConfiguration'] = config_name
end