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.

20 lines
567 B

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