Skip to content

Commit

Permalink
Set default token arg value for split_tokens(..)
Browse files Browse the repository at this point in the history
  • Loading branch information
jurisgalang committed Mar 24, 2009
1 parent 013afa9 commit 41f3d05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ruby-processing/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -309,14 +309,14 @@ def full_screen
# boundaries between each piece.
# A Stringarray is returned that contains each of the pieces.
def split(str, delim)
PApplet.split(delim)
PApplet.split(str, delim)
end

# splits a String at one or many character "tokens." The tokens parameter specifies the
# character or characters to be used as a boundary. If no tokens character is specified,
# any whitespace character is used to split. Whitespace characters include tab (\t),
# line feed (\n), carriage return (\r), form feed (\f), and space.
def split_tokens(str, tokens)
def split_tokens(str, tokens="\t\n\r\f ")
PApplet.splitTokens(str, tokens)
end

Expand Down

0 comments on commit 41f3d05

Please sign in to comment.