Class: Kamelopard::TourPrimitive
- Defined in:
- lib/kamelopard/classes.rb
Overview
Abstract class corresponding to KML’s gx:TourPrimitive object. Tours are made up of descendants of these. The :standalone option affects only initialization; there’s no point in doing anything with it after initialization. It determines whether the TourPrimitive object is added to the current tour or not
Direct Known Subclasses
Instance Attribute Summary collapse
-
#standalone ⇒ Object
Returns the value of attribute standalone.
Attributes inherited from Object
#comment, #kml_id, #master_only
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ TourPrimitive
constructor
A new instance of TourPrimitive.
Methods inherited from Object
#_alternate_to_kml, #change, #master_only?, parse, #to_kml
Constructor Details
#initialize(options = {}) ⇒ TourPrimitive
Returns a new instance of TourPrimitive.
1809 1810 1811 1812 |
# File 'lib/kamelopard/classes.rb', line 1809 def initialize( = {}) DocumentHolder.instance.current_document.tour << self unless .has_key?(:standalone) super end |
Instance Attribute Details
#standalone ⇒ Object
Returns the value of attribute standalone.
1807 1808 1809 |
# File 'lib/kamelopard/classes.rb', line 1807 def standalone @standalone end |