Skip to content

Commit

Permalink
Rename default to orElse
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Heidel committed Apr 20, 2015
1 parent 30e00b4 commit cdd24b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/io/getclump/Clump.scala
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ sealed trait Clump[+T] {
/**
* If this clump does not return a value then use the default instead
*/
def default[B >: T](default: => B): Clump[B] = new ClumpOrElse(this, Clump.value(default))
def orElse[B >: T: ClassTag](default: => B): Clump[B] = new ClumpOrElse(this, Clump.value(default))

def orElse[B >: T](default: => Clump[B]): Clump[B] = new ClumpOrElse(this, default)

Expand Down

0 comments on commit cdd24b6

Please sign in to comment.