Class: Kamelopard::TourControl
- Inherits:
-
TourPrimitive
- Object
- Object
- TourPrimitive
- Kamelopard::TourControl
- Defined in:
- lib/kamelopard/classes.rb
Overview
Corresponds to a KML gx:TourControl object
Instance Attribute Summary
Attributes inherited from TourPrimitive
Attributes inherited from Object
#comment, #kml_id, #master_only
Instance Method Summary collapse
Methods inherited from TourPrimitive
Methods inherited from Object
#_alternate_to_kml, #change, #initialize, #master_only?, parse
Constructor Details
This class inherits a constructor from Kamelopard::TourPrimitive
Instance Method Details
#to_kml(elem = nil) ⇒ Object
1927 1928 1929 1930 1931 1932 1933 1934 1935 |
# File 'lib/kamelopard/classes.rb', line 1927 def to_kml(elem = nil) k = XML::Node.new 'gx:TourControl' super(k) q = XML::Node.new 'gx:playMode' q << 'pause' k << q elem << k unless elem.nil? k end |