Class: LanguageModel

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-scancode/trig.rb

Instance Method Summary collapse

Constructor Details

#initializeLanguageModel

Returns a new instance of LanguageModel.



30
31
32
33
# File 'lib/cocoapods-scancode/trig.rb', line 30

def initialize
  @key = ''
  @map = {"key"=>"key"}
end

Instance Method Details

#setKey(key) ⇒ Object



35
36
37
# File 'lib/cocoapods-scancode/trig.rb', line 35

def setKey(key)
  @key = key
end

#setLanguageValue(newKey, value) ⇒ Object



39
40
41
# File 'lib/cocoapods-scancode/trig.rb', line 39

def setLanguageValue(newKey,value)
  @map.store(newKey,value)
end

#to_sObject



43
44
45
# File 'lib/cocoapods-scancode/trig.rb', line 43

def to_s
  "(key:#{@key},map:#{@map})"  # 对象的字符串格式
end