class CommandButler::TitleDecorator

Public Class Methods

decoration(file_name:file_name, contents:contents) click to toggle source
# 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