class Xcodeproj::XCScheme::EnvironmentVariable
[[NSProcessInfo processInfo] environment] in your app code.
Environment variables are accessible via the NSDictionary returned from
This class wraps the EnvironmentVariable node of a .xcscheme XML file.
def enabled
-
(Bool)-
def enabled string_to_bool(@xml_element.attributes['isEnabled']) end
def enabled=(enabled)
-
enabled(Bool) --
def enabled=(enabled) @xml_element.attributes['isEnabled'] = bool_to_string(enabled) end
def initialize(node_or_variable)
-
node_or_variable(nil, REXML::Element, Hash{Symbol => String,Bool}) --
def initialize(node_or_variable) create_xml_element_with_fallback(node_or_variable, VARIABLE_NODE) do raise "Must pass a Hash with 'key' and 'value'!" unless node_or_variable.is_a?(Hash) && node_or_variable.key?(:key) && node_or_variable.key?(:value) @xml_element.attributes['key'] = node_or_variable[:key] @xml_element.attributes['value'] = node_or_variable[:value] @xml_element.attributes['isEnabled'] = if node_or_variable.key?(:enabled) bool_to_string(node_or_variable[:enabled]) else bool_to_string(true) end end end
def key
-
(String)-
def key @xml_element.attributes['key'] end
def key=(key)
-
key(String) --
def key=(key) @xml_element.attributes['key'] = key end
def to_h
-
(Hash{:key => String, :value => String, :enabled => Bool})-
def to_h { :key => key, :value => value, :enabled => enabled } end
def value
-
(String)-
def value @xml_element.attributes['value'] end
def value=(value)
-
value(String) --
def value=(value) @xml_element.attributes['value'] = value end