Sha256: 686757d4a6d069377be16287d33db901873594f4865b185641e2cb08cd7da73f
Contents?: true
Size: 883 Bytes
Versions: 6
Compression:
Stored size: 883 Bytes
Contents
module Vedeu # Represents an invisible escape character sequence. class EscapeChar # @!attribute [r] value # @return [String] attr_reader :value alias_method :to_s, :value alias_method :to_str, :value # @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
6 entries across 6 versions & 1 rubygems