Class: OutlineAttribute
- Defined in:
- lib/white_gold/convention/theme/outline_attribute.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value) ⇒ OutlineAttribute
constructor
A new instance of OutlineAttribute.
- #to_theme ⇒ Object
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
#name ⇒ Object (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 |
#value ⇒ Object (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_theme ⇒ Object
12 13 14 |
# File 'lib/white_gold/convention/theme/outline_attribute.rb', line 12 def to_theme "#{name} = #{value.to_s};" end |