class ParseOpt::Option

Attributes

help[R]
long[R]
short[R]

Public Class Methods

new(short, long, help, &block) click to toggle source
# File lib/parseopt.rb, line 5
def initialize(short, long, help, &block)
  @block = block
  @short = short
  @long = long
  @help = help
end

Public Instance Methods

call(v) click to toggle source
# File lib/parseopt.rb, line 12
def call(v)
  @block.call(v) || true
end