Class: UnDefineKeyItem

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

Overview

-*- coding: UTF-8 -*-

Instance Method Summary collapse

Constructor Details

#initialize(key, path) ⇒ UnDefineKeyItem

Returns a new instance of UnDefineKeyItem.



9
10
11
12
# File 'lib/cocoapods-scancode/trig.rb', line 9

def initialize(key,path)
  @key = key
  @filePath = path
end

Instance Method Details

#printFilePathObject



18
19
20
# File 'lib/cocoapods-scancode/trig.rb', line 18

def printFilePath
@filePath
end

#printKeyObject



14
15
16
# File 'lib/cocoapods-scancode/trig.rb', line 14

def printKey
@key
end

#to_sObject



22
23
24
25
# File 'lib/cocoapods-scancode/trig.rb', line 22

def to_s
  keystring = @key.decoder('utf-8')
  "未定义key:#{keystring},filePath:#{@filePath}"  # 对象的字符串格式
end