Method: CraftBook::NBT::LongArrayTag#to_h

Defined in:
lib/craftbook/nbt/long_array_tag.rb

#to_hHash{Symbol => Object}

Returns the hash-representation of this object.

Returns:

  • (Hash{Symbol => Object})

    the hash-representation of this object.



20
21
22
# File 'lib/craftbook/nbt/long_array_tag.rb', line 20

def to_h
  { name: @name, type: @type, values: @values }
end