Skip to content

Commit

Permalink
Merge pull request #103 from neontapir/master
Browse files Browse the repository at this point in the history
fix #102 address Ruby 2.4 messages 'warning: parentheses after method name is …
  • Loading branch information
Fryguy committed Sep 4, 2018
2 parents 21de13a + 7b0f918 commit f22e884
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/optimist.rb
Expand Up @@ -590,11 +590,11 @@ def initialize
@optshash = Hash.new()
end

def opts (key)
def opts(key)
@optshash[key]
end

def opts= (o)
def opts=(o)
@optshash = o
end

Expand All @@ -620,7 +620,7 @@ def desc ; opts(:desc) ; end

def required? ; opts(:required) ; end

def parse (_paramlist, _neg_given)
def parse(_paramlist, _neg_given)
raise NotImplementedError, "parse must be overridden for newly registered type"
end

Expand Down

0 comments on commit f22e884

Please sign in to comment.