Class: UnDefineKeyItem
- Inherits:
-
Object
- Object
- UnDefineKeyItem
- Defined in:
- lib/cocoapods-scancode/trig.rb
Overview
-*- coding: UTF-8 -*-
Instance Method Summary collapse
-
#initialize(key, path) ⇒ UnDefineKeyItem
constructor
A new instance of UnDefineKeyItem.
- #printFilePath ⇒ Object
- #printKey ⇒ Object
- #to_s ⇒ Object
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
#printFilePath ⇒ Object
18 19 20 |
# File 'lib/cocoapods-scancode/trig.rb', line 18 def printFilePath @filePath end |
#printKey ⇒ Object
14 15 16 |
# File 'lib/cocoapods-scancode/trig.rb', line 14 def printKey @key end |
#to_s ⇒ Object
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 |