Sha256: 7f0abea24650bf671908f1f37725ccedb27a4a1991e691a762903e2c6963b557

Contents?: true

Size: 489 Bytes

Versions: 95

Compression:

Stored size: 489 Bytes

Contents

#encoding: UTF-8

module Kafo
  class ParamGroup
    attr_reader :children, :params, :name
    attr_accessor :module


    def initialize(name)
      @children = []
      @params   = []
      @name     = name
    end

    def formatted_name
      @formatted_name ||= @name.sub(/:\Z/,'')
    end

    def add_child(group)
      @children.push group unless @children.include?(group)
    end

    def add_param(param)
      @params.push param unless @params.include?(param)
    end
  end
end

Version data entries

95 entries across 95 versions & 1 rubygems

Version Path
kafo-0.6.9 lib/kafo/param_group.rb
kafo-0.6.8 lib/kafo/param_group.rb
kafo-0.6.7 lib/kafo/param_group.rb
kafo-0.6.6 lib/kafo/param_group.rb
kafo-0.6.5 lib/kafo/param_group.rb
kafo-0.6.4 lib/kafo/param_group.rb
kafo-0.6.3 lib/kafo/param_group.rb
kafo-0.6.2 lib/kafo/param_group.rb
kafo-0.6.1 lib/kafo/param_group.rb
kafo-0.6.0 lib/kafo/param_group.rb
kafo-0.5.5 lib/kafo/param_group.rb
kafo-0.5.4 lib/kafo/param_group.rb
kafo-0.5.3 lib/kafo/param_group.rb
kafo-0.3.17 lib/kafo/param_group.rb
kafo-0.5.2 lib/kafo/param_group.rb
kafo-0.5.1 lib/kafo/param_group.rb
kafo-0.5.0 lib/kafo/param_group.rb
kafo-0.4.0 lib/kafo/param_group.rb
kafo-0.3.16 lib/kafo/param_group.rb
kafo-0.3.15 lib/kafo/param_group.rb