Class: Calldata::Blob

Inherits:
Calldata show all
Defined in:
lib/calldata/parser.rb

Overview

class Text

Constant Summary

Constants inherited from Calldata

MAJOR, MINOR, PATCH, VERSION

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Calldata

banner, decode, encode, parse_data, parse_hex, root, valid_data?, valid_hex?, version

Constructor Details

#initialize(blob, type) ⇒ Blob

Returns a new instance of Blob.



72
73
74
75
# File 'lib/calldata/parser.rb', line 72

def initialize( blob, type )
   @blob = blob
   @type = type   ## parse type (split off parameter and such - why? why not?)
end

Instance Attribute Details

#blobObject (readonly)

Returns the value of attribute blob.



71
72
73
# File 'lib/calldata/parser.rb', line 71

def blob
  @blob
end

#typeObject (readonly)

Returns the value of attribute type.



71
72
73
# File 'lib/calldata/parser.rb', line 71

def type
  @type
end

Instance Method Details

#write(path) ⇒ Object



77
# File 'lib/calldata/parser.rb', line 77

def write( path ) write_blob( path, @blob ); end