MCPcopy Create free account
hub / github.com/ember-learn/ember-api-docs / usesObjects

Method usesObjects

app/models/class.js:69–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67 }
68
69 get usesObjects() {
70 return this.uses.map((className) => ({
71 name: className,
72 shortName:
73 className.substr(0, 6) === 'Ember.' ? className.substr(6) : className,
74 projectId:
75 className.substr(0, 6) === 'Ember.'
76 ? 'ember'
77 : className.substr(0, 3) === 'DS'
78 ? 'ember-data'
79 : this.project.id,
80 }));
81 }
82
83 projectNameFromClassName(val) {
84 const value = val ?? '';

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected