class Optimist::BooleanOption
Flag option. Has no arguments. Can be negated with “no-”.
Public Class Methods
Source
# File lib/optimist.rb, line 754 def initialize super() @default = false end
Calls superclass method
Optimist::Option::new
Public Instance Methods
Source
# File lib/optimist.rb, line 759 def parse(_paramlist, neg_given) return(self.name.to_s =~ /^no_/ ? neg_given : !neg_given) end