lib/vim_channels/cli/colors.rb
def attribute(attr)
          attr = attr.to_sym
          unless ATTRS.key?(attr)
            raise ArgumentError, "Unknown attribute: #{attr}"
          end

          self.class.new("#{ATTRS[attr]}#{self}#{RESET}")
        end
# Add the terminal attribute `attr` to self.
#
# @param attr [Symbol, String] the terminal attribute to apply
#
# @return [ColoredString]
Add the terminal attribute `attr` to self.
Add the terminal attribute ` attr ` to self .
def attribute(attr)
          attr = attr.to_sym
          unless ATTRS.key?(attr)
            raise ArgumentError, "Unknown attribute: #{attr}"
          end
          self.class.new("#{ATTRS[attr]}#{self}#{RESET}")
        end
def attribute ( attr ) attr = attr . to_sym unless ATTRS . key? ( attr ) raise ArgumentError , "Unknown attribute: #{attr}" end self . class . new ( "#{ATTRS[attr]}#{self}#{RESET}" ) end
Add the terminal attribute `attr` to self.
Add the terminal attribute ` attr ` to self .
None
ColoredString
attr
the terminal attribute to apply
the terminal attribute to apply