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.
1749 1750 1751 1752 |
# File 'lib/kamelopard/classes.rb', line 1749 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.
1747 1748 1749 |
# File 'lib/kamelopard/classes.rb', line 1747 def standalone @standalone end |