Class: CommandButler::ResultDecorator

Inherits:
Object
  • Object
show all
Defined in:
lib/command_butler/result_decorator.rb

Class Method Summary collapse

Class Method Details

.decoration(command: command, index: index, &block) ⇒ Object



3
4
5
6
7
# File 'lib/command_butler/result_decorator.rb', line 3

def self.decoration(command:command,index:index, &block)
  puts head = "--  result #{index+1}" + "-" * 40
  yield
  puts "-" * head.length
end