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.53.0 lib/avo/tab_builder.rb
avo-2.52.0 lib/avo/tab_builder.rb
avo-2.49.0 lib/avo/tab_builder.rb
avo-2.48.0 lib/avo/tab_builder.rb
avo-2.47.0 lib/avo/tab_builder.rb
avo-2.46.0 lib/avo/tab_builder.rb
avo-2.45.0 lib/avo/tab_builder.rb
avo-2.44.0 lib/avo/tab_builder.rb
avo-2.43.0 lib/avo/tab_builder.rb
avo-2.42.2 lib/avo/tab_builder.rb
avo-2.42.1 lib/avo/tab_builder.rb
avo-2.42.0 lib/avo/tab_builder.rb
avo-2.41.0 lib/avo/tab_builder.rb
avo-2.40.0 lib/avo/tab_builder.rb
avo-2.39.0 lib/avo/tab_builder.rb
avo-2.38.0 lib/avo/tab_builder.rb
avo-2.37.2 lib/avo/tab_builder.rb
avo-2.37.1 lib/avo/tab_builder.rb
avo-2.37.0 lib/avo/tab_builder.rb
avo-2.36.3 lib/avo/tab_builder.rb