Class: Ppl::Application::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/ppl/application/command.rb

Constant Summary collapse

@@property_values =
{}

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#storageObject

Returns the value of attribute storage.



5
6
7
# File 'lib/ppl/application/command.rb', line 5

def storage
  @storage
end

Class Method Details

.add_property(name) ⇒ Object



14
15
16
17
18
19
# File 'lib/ppl/application/command.rb', line 14

def self.add_property(name)
  @@property_values[name] = {}
  self.add_static_property_setter(name)
  self.add_instance_property_getter(name)
  self.add_instance_property_setter(name)
end

Instance Method Details

#execute(input, output) ⇒ Object

Raises:

  • (NotImplementedError)


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

def execute(input, output)
  raise NotImplementedError
end

#options(parser, options) ⇒ Object



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

def options(parser, options)
end