Class: KML::Folder

Inherits:
Container show all
Defined in:
lib/kml/folder.rb

Overview

A Folder is used to arrange other Features hierarchically (Folders, Placemarks, NetworkLinks, or Overlays). A Feature is visible only if it and all its ancestors are visible.

Instance Attribute Summary

Attributes inherited from Container

#features, #plain_children

Attributes inherited from Feature

#address, #address_details, #description, #look_at, #metadata, #name, #phone_number, #region, #snippet, #style_selector, #style_url, #time_primitive

Attributes inherited from Object

#id

Instance Method Summary collapse

Methods inherited from Feature

#open, #open=, #open?, #visibility, #visibility=, #visibility?

Methods inherited from Object

#initialize

Constructor Details

This class inherits a constructor from KML::Object

Instance Method Details

#render(xm = Builder::XmlMarkup.new(:indent => 2)) ⇒ Object



5
6
7
8
9
10
# File 'lib/kml/folder.rb', line 5

def render(xm=Builder::XmlMarkup.new(:indent => 2))
  xm.Folder {
    super
    features.each { |f| f.render(xm) }
  }
end