Class: Calldata::Blob
Overview
class Text
Constant Summary
Constants inherited from Calldata
Instance Attribute Summary collapse
-
#blob ⇒ Object
readonly
Returns the value of attribute blob.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(blob, type) ⇒ Blob
constructor
A new instance of Blob.
- #write(path) ⇒ Object
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
#blob ⇒ Object (readonly)
Returns the value of attribute blob.
71 72 73 |
# File 'lib/calldata/parser.rb', line 71 def blob @blob end |
#type ⇒ Object (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 |