Class: Furnace::AVM2::ABC::NsSetInfo

Inherits:
Record show all
Defined in:
lib/furnace-avm2/abc/metadata/ns_set_info.rb

Instance Attribute Summary

Attributes inherited from Binary::Record

#root

Instance Method Summary collapse

Methods inherited from Record

abc_array_of, flag, pool_array, pool_array_of, pool_ref, subset, xlat_direct, xlat_field, xlat_inverse

Methods inherited from Binary::Record

#byte_length, codegen, codegen_each, inherited, #inspect, method_missing, register, #to_hash, trace, trace_scope, trace_value

Instance Method Details

#to_astletObject



9
10
11
# File 'lib/furnace-avm2/abc/metadata/ns_set_info.rb', line 9

def to_astlet
  AST::Node.new(:set, ns.map(&:name).uniq)
end

#to_sObject



5
6
7
# File 'lib/furnace-avm2/abc/metadata/ns_set_info.rb', line 5

def to_s
  "{#{ns.map(&:to_s).join(",")}}"
end