Class: Rootage::Argument

Inherits:
Item
  • Object
show all
Defined in:
lib/rootage/argument.rb

Overview

Argument is an argument item for command.

Instance Method Summary collapse

Methods inherited from Item

#assign, #condition, #copy, #exception, #execute, #key, #process

Instance Method Details

#validate(&b) ⇒ Object



11
12
13
# File 'lib/rootage/argument.rb', line 11

def validate(&b)
  self.validator = b
end