Method: NetSuite::Support::Fields::ClassMethods#inherited
- Defined in:
- lib/netsuite/support/fields.rb
#inherited(klass) ⇒ Object
a bit of trickery: this is for classes which inherit from other classes i.e. the AssemblyItem, KitItem, etc; this copies the superclass’s fields over
66 67 68 69 |
# File 'lib/netsuite/support/fields.rb', line 66 def inherited(klass) klass.instance_variable_set("@fields", self.fields) klass.instance_variable_set("@read_only_fields", self.read_only_fields) end |