Class: Headdesk::Apk::Field

Inherits:
Object
  • Object
show all
Defined in:
lib/headdesk/apk/field.rb

Overview

A Smali bytecode field

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(matchdata) ⇒ Field

Returns a new instance of Field.



11
12
13
14
15
16
# File 'lib/headdesk/apk/field.rb', line 11

def initialize(matchdata)
  @code = matchdata[0]
  @value = matchdata[1]

  @value.extend(ExtraMethods)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



9
10
11
# File 'lib/headdesk/apk/field.rb', line 9

def code
  @code
end

#valueObject (readonly)

Returns the value of attribute value.



9
10
11
# File 'lib/headdesk/apk/field.rb', line 9

def value
  @value
end