class PropertyGrid::PropertyGridGroup

Defines a PropertyGrid group A group has a name and a collection of properties.

Attributes

name[RW]
properties[RW]

Public Class Methods

new() click to toggle source
# File lib/property_grid.rb, line 38
def initialize
  @name = nil
  @properties = []
end

Public Instance Methods

add_property(var, name, property_type = :string, collection = nil) click to toggle source

Adds a property to the properties collection and returns self.

# File lib/property_grid.rb, line 44
def add_property(var, name, property_type = :string, collection = nil)
  group_property = GroupProperty.new(var, name, property_type, collection)
  @properties << group_property
  self
end