class XcodeMove::HeaderVisibility
Constants
- PRIVATE
- PROJECT
- PUBLIC
Attributes
value[R]
Public Class Methods
default_for_target(native_target)
click to toggle source
# File lib/xcmv/header_visibility.rb, line 19 def self.default_for_target(native_target) case native_target.product_type when "com.apple.product-type.framework" PUBLIC else PROJECT end end
from_file_settings(settings)
click to toggle source
# File lib/xcmv/header_visibility.rb, line 28 def self.from_file_settings(settings) case settings["ATTRIBUTES"] when "Public" PUBLIC when "Private" PRIVATE when nil PROJECT end end
new(value)
click to toggle source
# File lib/xcmv/header_visibility.rb, line 7 def initialize(value) @value = value end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/xcmv/header_visibility.rb, line 51 def <=>(other) value <=> other.value end
file_settings()
click to toggle source
# File lib/xcmv/header_visibility.rb, line 39 def file_settings case self when PUBLIC visibility = "Public" when PRIVATE visibility = "Private" when PROJECT visibility = nil end { "ATTRIBUTES": [visibility] } end