Sha256: bb74b6a020cfbecf7f9353462b63db016e1615416ef53e98946459709513ebf7
Contents?: true
Size: 961 Bytes
Versions: 4
Compression:
Stored size: 961 Bytes
Contents
module Vedeu # Represents an invisible escape character sequence. # # @api private class EscapeChar # @!attribute [r] value # @return [String] attr_reader :value alias_method :to_s, :value alias_method :to_str, :value # Returns a new instance of Vedeu::EscapeChar. # # @param value [String] # @return [Vedeu::EscapeChar] def initialize(value) @value = value end # @return [String] def colour '' end # An object is equal when its values are the same. # # @param other [Vedeu::Char] # @return [Boolean] def eql?(other) self.class == other.class && value == other.value end alias_method :==, :eql? # @return [String] def inspect "<Vedeu::EscapeChar '#{Vedeu::Esc.escape(to_s)}'>" end # @return [String] def position '' end # @return [String] def style '' end end # EscapeChar end # Vedeu
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.4.44 | lib/vedeu/models/escape_char.rb |
vedeu-0.4.43 | lib/vedeu/models/escape_char.rb |
vedeu-0.4.42 | lib/vedeu/models/escape_char.rb |
vedeu-0.4.41 | lib/vedeu/models/escape_char.rb |