Class: Container

Inherits:
Feature show all
Defined in:
lib/kamelopard/classes.rb

Overview

Abstract class corresponding to KML’s Container object.

Direct Known Subclasses

Document, Folder

Instance Attribute Summary

Attributes inherited from Feature

#abstractView, #addressDetails, #atom_author, #atom_link, #description, #extendedData, #metadata, #name, #open, #phoneNumber, #region, #snippet, #styleSelector, #styleUrl, #styles, #timeprimitive, #visibility

Attributes inherited from KMLObject

#comment, #id

Instance Method Summary collapse

Methods inherited from Feature

#styles_to_kml, #timespan, #timespan=, #timestamp, #timestamp=, #to_kml

Methods inherited from KMLObject

#to_kml

Constructor Details

#initializeContainer

Returns a new instance of Container.



624
625
626
627
# File 'lib/kamelopard/classes.rb', line 624

def initialize
    super
    @features = []
end

Instance Method Details

#<<(a) ⇒ Object

Adds a new object to this container.



630
631
632
# File 'lib/kamelopard/classes.rb', line 630

def <<(a)
    @features << a
end