Class: KML::LabelStyle

Inherits:
ColorStyle
  • Object
show all
Defined in:
lib/ruby_kml/label_style.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#scaleObject

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