Class: Pliney::AppleCodeSignature::Blob::Magic

Inherits:
Object
  • Object
show all
Defined in:
lib/pliney/apple_code_signature.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(num) ⇒ Magic

Returns a new instance of Magic.



8
9
10
# File 'lib/pliney/apple_code_signature.rb', line 8

def initialize(num)
    @value = (Magic === num)? num.value : num
end

Instance Attribute Details

#valueObject

Returns the value of attribute value.



7
8
9
# File 'lib/pliney/apple_code_signature.rb', line 7

def value
  @value
end

Instance Method Details

#inspectObject



12
13
14
# File 'lib/pliney/apple_code_signature.rb', line 12

def inspect
    "0x%x" % value
end