Class: CommandButler::TitleDecorator

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

Class Method Summary collapse

Class Method Details

.decoration(file_name: file_name, contents: contents) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/command_butler/title_decorator.rb', line 3

def self.decoration(file_name:file_name, contents:contents)
  res = ""
  head = "--- start" + ("-"  * 40) + "\n"
  res += head
  res += contents + "\n"
  res += "-" * (head.length - 1)
  res
end