Skip to content

Commit

Permalink
Implement Booleanish in remaining classes
Browse files Browse the repository at this point in the history
  • Loading branch information
LadyCailin committed May 23, 2020
1 parent b8a07c4 commit 0a50d66
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/com/laytonsmith/core/constructs/CClassType.java
Original file line number Diff line number Diff line change
Expand Up @@ -616,4 +616,9 @@ public Class<? extends Mixed> getNativeType() {
return nativeClass;
}

@Override
public boolean getBooleanValue(Target t) {
return true;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -309,4 +309,9 @@ public CClassType typeof() {
return Construct.typeof(this);
}

@Override
public boolean getBooleanValue(Target t) {
return true;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ public int size() {
};
}

@Override
public boolean getBooleanValue(Target t) {
return true;
}

};
}
Expand Down Expand Up @@ -522,4 +526,9 @@ public Mixed slice(int begin, int end, Target t) {
*/
protected abstract List<MEnumTypeValue> getValues();

@Override
public boolean getBooleanValue(Target t) {
return true;
}

}

0 comments on commit 0a50d66

Please sign in to comment.