Sha256: d96b2058c6a644ccc646f3b2a5c9cb2160fcc4772f119d8cc7e75290a1572ec3

Contents?: true

Size: 312 Bytes

Versions: 2

Compression:

Stored size: 312 Bytes

Contents

# The string class, which is wrapped in order to add the possibility
# to convert a string to {Inker::Color}.
class String
  # Creates a new instance of {Inker::Color} directly from the string
  #
  # @example
  #   "#000000".to_color
  #
  # @return [Inker::Color]
  def to_color
    Inker.color(self)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
inker-0.2.0 lib/inker/wrappers/string.rb
inker-0.1.0 lib/inker/wrappers/string.rb