Skip to content

Commit

Permalink
Removing unrequired ()'s for methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurtis Rainbolt-Greene committed Jan 9, 2012
1 parent b8d1942 commit dd239fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/rocco.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,16 @@ def initialize(filename, sources=[], options={})
@options = defaults.merge(options)

# If we detect a language
if detect_language() != "text"
if "text" != detect_language
# then assign the detected language to `:language`, and look for
# comment characters based on that language
@options[:language] = detect_language()
@options[:comment_chars] = generate_comment_chars()
@options[:language] = detect_language
@options[:comment_chars] = generate_comment_chars

# If we didn't detect a language, but the user provided one, use it
# to look around for comment characters to override the default.
elsif @options[:language] != defaults[:language]
@options[:comment_chars] = generate_comment_chars()
@options[:comment_chars] = generate_comment_chars

# If neither is true, then convert the default comment character string
# into the comment_char syntax (we'll discuss that syntax in detail when
Expand Down

0 comments on commit dd239fd

Please sign in to comment.