Sha256: 6ef1875f297a9dd0f2646b39c11c85b2c0264d389793bc72a9ed83b14eda2591
Contents?: true
Size: 305 Bytes
Versions: 2
Compression:
Stored size: 305 Bytes
Contents
# -*- encoding : utf-8 -*- require 'megingiard/ansi_escape_code_validator' module Megingiard # As the name suggests class AnsiEscapeSequence def initialize(code) AnsiEscapeCodeValidator.instance.validate(code) @code = code end def to_s "\e[#{@code}m" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
megingiard-0.1.0 | lib/megingiard/ansi_escape_sequence.rb |
megingiard-0.0.1 | lib/megingiard/ansi_escape_sequence.rb |