Class: OutlineAttribute

Inherits:
Object show all
Defined in:
lib/white_gold/convention/theme/outline_attribute.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, value) ⇒ OutlineAttribute

Returns a new instance of OutlineAttribute.



4
5
6
7
# File 'lib/white_gold/convention/theme/outline_attribute.rb', line 4

def initialize name, value
  @name = name
  @value = Outline.from *value
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



9
10
11
# File 'lib/white_gold/convention/theme/outline_attribute.rb', line 9

def name
  @name
end

#valueObject (readonly)

Returns the value of attribute value.



10
11
12
# File 'lib/white_gold/convention/theme/outline_attribute.rb', line 10

def value
  @value
end

Instance Method Details

#to_themeObject



12
13
14
# File 'lib/white_gold/convention/theme/outline_attribute.rb', line 12

def to_theme
  "#{name} = #{value.to_s};"
end