Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/hermeneutics/color.rb

Instance Method Summary collapse

Instance Method Details

#to_grayObject Also known as: to_grey



265
266
267
# File 'lib/hermeneutics/color.rb', line 265

def to_gray
  (Integer self).to_gray
end

#to_rgbObject



269
270
271
# File 'lib/hermeneutics/color.rb', line 269

def to_rgb
  Hermeneutics::Color.from_s self
end