Class: Ppl::Command::Age

Inherits:
Application::Command show all
Defined in:
lib/ppl/command/age.rb

Instance Attribute Summary collapse

Attributes inherited from Application::Command

#storage

Instance Method Summary collapse

Methods inherited from Application::Command

add_property

Instance Attribute Details

#list_format=(value) ⇒ Object (writeonly)

Sets the attribute list_format

Parameters:

  • value

    the value to set the attribute list_format to.



7
8
9
# File 'lib/ppl/command/age.rb', line 7

def list_format=(value)
  @list_format = value
end

#show_format=(value) ⇒ Object (writeonly)

Sets the attribute show_format

Parameters:

  • value

    the value to set the attribute show_format to.



8
9
10
# File 'lib/ppl/command/age.rb', line 8

def show_format=(value)
  @show_format = value
end

Instance Method Details

#execute(input, output) ⇒ Object



14
15
16
17
# File 'lib/ppl/command/age.rb', line 14

def execute(input, output)
  action = determine_action(input)
  send(action, input, output)
end

#options(parser, options) ⇒ Object



10
11
12
# File 'lib/ppl/command/age.rb', line 10

def options(parser, options)
  parser.banner = "usage: ppl age"
end