Class: KML::LabelStyle
- Inherits:
-
ColorStyle
- Object
- ColorStyle
- KML::LabelStyle
- Defined in:
- lib/ruby_kml/label_style.rb
Instance Attribute Summary collapse
-
#scale ⇒ Object
Returns the value of attribute scale.
Instance Method Summary collapse
Instance Attribute Details
#scale ⇒ Object
Returns the value of attribute scale.
6 7 8 |
# File 'lib/ruby_kml/label_style.rb', line 6 def scale @scale end |
Instance Method Details
#render(xm = Builder::XmlMarkup.new(:indent => 2)) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/ruby_kml/label_style.rb', line 8 def render(xm=Builder::XmlMarkup.new(:indent => 2) ) xm.LabelStyle { super xm.scale(scale) unless scale.nil? } end |