Class: PM::Note

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-byte-panglem-beta/recorder.rb

Overview

配置信息

Direct Known Subclasses

AdnNote, GlobalNote

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#auto_loadObject

Returns the value of attribute auto_load.



97
98
99
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 97

def auto_load
  @auto_load
end

#auto_updateObject

Returns the value of attribute auto_update.



98
99
100
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 98

def auto_update
  @auto_update
end

#load_detectObject

Returns the value of attribute load_detect.



99
100
101
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 99

def load_detect
  @load_detect
end

Instance Method Details

#get_update(update_value) ⇒ Object



100
101
102
103
104
105
106
107
108
109
110
111
112
113
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 100

def get_update(update_value)
  value = ''
  case update_value
  when true
    value = PM::BuildConfig.update_value_last_version
  when false
    value = PM::BuildConfig.update_value_non
  when String
    value = update_value
  else
    raise ArgumentError, "CSJM error: `#{update_value.inspect}`, should be a boolean or string."
  end
  value
end