Class: Commander::OptionMatch

Inherits:
Struct
  • Object
show all
Defined in:
lib/nub/commander.rb

Instance Method Summary collapse

Instance Method Details

#flag?Boolean

Returns:

  • (Boolean)


309
310
311
# File 'lib/nub/commander.rb', line 309

def flag?
  return opt.type == FalseClass
end

#hit?Boolean

Returns:

  • (Boolean)


306
307
308
# File 'lib/nub/commander.rb', line 306

def hit?
  return !!sym
end