Class: Sbuilder::ParamSetRoot

Inherits:
Object
  • Object
show all
Defined in:
lib/sbuilder/facade/param_set_root.rb

Overview

Abstract base class for parameter sets (definitions, interfaces). Provides common method to add parameters to the parameter set.

Instance Attribute Summary (collapse)

Constructor and Object Initialize (collapse)

Configure Model Object Relationships (collapse)

Constructor Details

- (ParamSetRoot) initialize(options = {})

constructor for the abstact class



20
21
22
# File 'lib/sbuilder/facade/param_set_root.rb', line 20

def initialize( options = {} )
  @parameters = []
end

Instance Attribute Details

- (Object) parameters

array of parameters:Parameter



10
11
12
# File 'lib/sbuilder/facade/param_set_root.rb', line 10

def parameters
  @parameters
end

Instance Method Details

- (Object) addParameter(param)

Add a 'parameter' to known parameters in the parameter set.

Parameters:

  • param (Sbuilder::parameter)

    parameter to add



32
33
34
35
# File 'lib/sbuilder/facade/param_set_root.rb', line 32

def addParameter( param )
  parameters << param
  self
end