You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
618 B

2 months ago
2 months ago
  1. require 'ostruct'
  2. module Semantic
  3. # extra dimensions for customizing the logging format
  4. module FancyDimensions
  5. def self.new(rails: '╣x╠', before: 0, after: 0, terminus: false)
  6. OpenStruct.new(rails:, before:, after:, terminus:) # rubocop:disable Style/OpenStructUse
  7. end
  8. def self.start
  9. OpenStruct.new(rails: '╓─╖') # rubocop:disable Style/OpenStructUse
  10. end
  11. def self.end
  12. OpenStruct.new(rails: '╣ ╠') # rubocop:disable Style/OpenStructUse
  13. end
  14. def self.around
  15. OpenStruct.new(rails: '╣ ╠') # rubocop:disable Style/OpenStructUse
  16. end
  17. end
  18. end