Module: I8::Struct
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.define(*vector_prop_defs, **hash_prop_defs, &body) ⇒ Object
86 87 88 89 90 91 92 93 94 95 |
# File 'lib/nrser/labs/i8.rb', line 86 def self.define *vector_prop_defs, **hash_prop_defs, &body check_new_args! vector_prop_defs, hash_prop_defs if !vector_prop_defs.empty? raise "not implemented" # I8::Struct::Vector.new else I8::Struct::Hash.new **hash_prop_defs, &body end end |