Class: Pyer::Flag

Inherits:
Option show all
Defined in:
lib/pyer/options.rb

Overview

Flag class

Instance Attribute Summary

Attributes inherited from Option

#callback, #description, #expects_argument, #name, #short, #value

Instance Method Summary collapse

Constructor Details

#initialize(name, description, &block) ⇒ Flag

Returns a new instance of Flag.



303
304
305
306
# File 'lib/pyer/options.rb', line 303

def initialize(name, description, &block)
  super
  @value = false
end