Class: TextureAttribute
- Defined in:
- lib/white_gold/convention/theme/texture_attribute.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name, value) ⇒ TextureAttribute
constructor
A new instance of TextureAttribute.
- #to_theme ⇒ Object
Constructor Details
#initialize(name, value) ⇒ TextureAttribute
Returns a new instance of TextureAttribute.
4 5 6 7 |
# File 'lib/white_gold/convention/theme/texture_attribute.rb', line 4 def initialize name, value @name = name @value = Texture.from *value end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/white_gold/convention/theme/texture_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/texture_attribute.rb', line 10 def value @value end |
Class Method Details
Instance Method Details
#to_theme ⇒ Object
12 13 14 |
# File 'lib/white_gold/convention/theme/texture_attribute.rb', line 12 def to_theme "#{name} = #{value.to_theme};" end |