Skip to content

Commit

Permalink
class: styling
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Dec 31, 2015
1 parent ad22eae commit 2694fe7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/class.js
Expand Up @@ -259,7 +259,7 @@ Class.prototype.addIvar = function(name, type, size, alignment) {
if (!core.class_addIvar(this.classPointer, name, size, alignment, type))
throw new Error('ivar "' + name + '" was NOT sucessfully added to Class: ' + this.getName());
return this;
}
};

/* Proxy methods */
Class.prototype.getName = function() {
Expand Down Expand Up @@ -291,27 +291,27 @@ Class.prototype.setSuperclass = function(superclass) {
};

Class.prototype.getInstanceVariable = function(name) {
return ivar.wrap(core.class_getInstanceVariable(this.classPointer, name));
return ivar.wrap(core.class_getInstanceVariable(this.classPointer, name));
};

Class.prototype.getClassVariable = function(name) {
return ivar.wrap(core.class_getClassVariable(this.classPointer, name));
return ivar.wrap(core.class_getClassVariable(this.classPointer, name));
};

Class.prototype.getInstanceMethod = function(sel) {
return method.wrap(core.class_getInstanceMethod(this.classPointer, core.unwrapValue(sel, ':')));
return method.wrap(core.class_getInstanceMethod(this.classPointer, core.unwrapValue(sel, ':')));
};

Class.prototype.getClassMethod = function(sel) {
return method.wrap(core.class_getClassMethod(this.classPointer, core.unwrapValue(sel, ':')));
return method.wrap(core.class_getClassMethod(this.classPointer, core.unwrapValue(sel, ':')));
};

Class.prototype.getInstanceVariables = function() {
return core.copyIvarList(this.pointer);
return core.copyIvarList(this.pointer);
};

Class.prototype.getInstanceMethods = function() {
return core.copyMethodList(this.pointer);
return core.copyMethodList(this.pointer);
};

/**
Expand All @@ -322,7 +322,7 @@ Class.prototype.getSuperclass = function() {
var superclassPointer = core.class_getSuperclass(this.classPointer);
if (ref.isNull(superclassPointer)) return null;
return core.wrapValue(superclassPointer, '#');
}
};

/**
* Returns an Array of Strings of the names of methods that the current object
Expand Down

0 comments on commit 2694fe7

Please sign in to comment.