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.



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

def storage
  @storage
end

Class Method Details

.add_property(name) ⇒ Object



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

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)


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

def execute(input, output)
  raise NotImplementedError
end

#options(parser, options) ⇒ Object



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

def options(parser, options)
end