Class: Headdesk::Apk::Field
- Inherits:
-
Object
- Object
- Headdesk::Apk::Field
- Defined in:
- lib/headdesk/apk/field.rb
Overview
A Smali bytecode field
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(matchdata) ⇒ Field
constructor
A new instance of Field.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
9 10 11 |
# File 'lib/headdesk/apk/field.rb', line 9 def code @code end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
9 10 11 |
# File 'lib/headdesk/apk/field.rb', line 9 def value @value end |