Class: BooleanAttribute

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, value) ⇒ BooleanAttribute

Returns a new instance of BooleanAttribute.



2
3
4
5
# File 'lib/white_gold/convention/theme/boolean_attribute.rb', line 2

def initialize name, value
  @name = name
  @value = value[0]
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/white_gold/convention/theme/boolean_attribute.rb', line 7

def name
  @name
end

#valueObject (readonly)

Returns the value of attribute value.



8
9
10
# File 'lib/white_gold/convention/theme/boolean_attribute.rb', line 8

def value
  @value
end

Instance Method Details

#to_themeObject



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

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