Class: BitcoinNode::Protocol::FieldStruct

Inherits:
Struct
  • Object
show all
Defined in:
lib/bitcoin_node/protocol/fields.rb

Instance Method Summary collapse

Instance Method Details

#to_sObject Also known as: inspect



8
9
10
11
# File 'lib/bitcoin_node/protocol/fields.rb', line 8

def to_s
  type = self.class.name ? self.class.name.split('::').last : '' 
  "#<struct #{type} #{values.join(', ')}>" 
end