Class: Falu::Colors::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/falu/colors/base.rb

Direct Known Subclasses

HEX, HSL, RGB

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#colorObject (readonly)

Returns the value of attribute color.



4
5
6
# File 'lib/falu/colors/base.rb', line 4

def color
  @color
end

Instance Method Details

#as_json(options = {}) ⇒ Object



6
7
8
# File 'lib/falu/colors/base.rb', line 6

def as_json(options={})
  to_s
end