Sha256: 9718f68829d29dfbeb976aaac5f9a19d4daec4206fe2e7e1c62bde2bbb591e3f

Contents?: true

Size: 282 Bytes

Versions: 3

Compression:

Stored size: 282 Bytes

Contents

module CommandButler
  class TitleDecorator
    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
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
command_butler-0.0.3 lib/command_butler/title_decorator.rb
command_butler-0.0.2 lib/command_butler/title_decorator.rb
command_butler-0.0.1 lib/command_butler/title_decorator.rb