Sha256: 6c5e6a31802501703f24c918e725d8862ed5f069cbd0a1d978d729d67e2cdcef

Contents?: true

Size: 530 Bytes

Versions: 144

Compression:

Stored size: 530 Bytes

Contents

class Avo::TabBuilder
  class << self
    def parse_block(**args, &block)
      Docile.dsl_eval(new(**args), &block).build
    end
  end

  attr_reader :items_holder

  delegate :field, to: :items_holder
  delegate :tool, to: :items_holder
  delegate :panel, to: :items_holder
  delegate :items, to: :items_holder

  def initialize(name: nil, **args)
    @tab = Avo::Tab.new(name: name, **args)
    @items_holder = Avo::ItemsHolder.new
  end

  # Fetch the tab
  def build
    @tab.items_holder = @items_holder
    @tab
  end
end

Version data entries

144 entries across 144 versions & 1 rubygems

Version Path
avo-2.32.5 lib/avo/tab_builder.rb
avo-2.32.4 lib/avo/tab_builder.rb
avo-2.32.3 lib/avo/tab_builder.rb
avo-2.32.2 lib/avo/tab_builder.rb
avo-2.32.1 lib/avo/tab_builder.rb
avo-2.32.0 lib/avo/tab_builder.rb
avo-2.31.0 lib/avo/tab_builder.rb
avo-2.30.2 lib/avo/tab_builder.rb
avo-2.30.1 lib/avo/tab_builder.rb
avo-2.30.1.pre4.pr1683 lib/avo/tab_builder.rb
avo-2.30.1.pre3.pr1683 lib/avo/tab_builder.rb
avo-2.30.1.pre2.pr1683 lib/avo/tab_builder.rb
avo-2.30.1.pre1.pr1683 lib/avo/tab_builder.rb
avo-2.30.0 lib/avo/tab_builder.rb
avo-2.29.1 lib/avo/tab_builder.rb
avo-2.29.1.pre.pr1652 lib/avo/tab_builder.rb
avo-2.29.0 lib/avo/tab_builder.rb
avo-2.28.3.pre.pr1646 lib/avo/tab_builder.rb
avo-2.28.2.pre.pr1642 lib/avo/tab_builder.rb
avo-2.28.1.pre.pr1642 lib/avo/tab_builder.rb