Skip to content

Commit

Permalink
Sort out an annoying warning message.
Browse files Browse the repository at this point in the history
Ruby's warning me about how parentheses are treated as denoting
function arguments.  Which they're being used as here.  But
apparently Ruby thinks I might have been confused.
  • Loading branch information
dagbrown committed Jul 19, 2017
1 parent 1503775 commit 5f43b54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gurgitate/header.RB
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ module Gurgitate
end

# Extended header
def << (text)
def << text
@contents += "\n" + text
end

# Matches a header's contents.
# regex::
# The regular expression to match against the header's contents
def matches (regex)
def matches regex
if String === regex
regex = Regexp.new(Regexp.escape(regex))
end
Expand Down

0 comments on commit 5f43b54

Please sign in to comment.