Sha256: addf6e18d7859b68ab6eede60c5c709ef246fd8be6f23659cfc497b09692b42b

Contents?: true

Size: 470 Bytes

Versions: 25

Compression:

Stored size: 470 Bytes

Contents

class Avo::RowBuilder
  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 :items, to: :items_holder

  def initialize(**args)
    @row = Avo::Row.new(**args)
    @items_holder = Avo::ItemsHolder.new
  end

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

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
avo-2.53.0 lib/avo/row_builder.rb
avo-2.52.0 lib/avo/row_builder.rb
avo-2.49.0 lib/avo/row_builder.rb
avo-2.48.0 lib/avo/row_builder.rb
avo-2.47.0 lib/avo/row_builder.rb
avo-2.46.0 lib/avo/row_builder.rb
avo-2.45.0 lib/avo/row_builder.rb
avo-2.44.0 lib/avo/row_builder.rb
avo-2.43.0 lib/avo/row_builder.rb
avo-2.42.2 lib/avo/row_builder.rb
avo-2.42.1 lib/avo/row_builder.rb
avo-2.42.0 lib/avo/row_builder.rb
avo-2.41.0 lib/avo/row_builder.rb
avo-2.40.0 lib/avo/row_builder.rb
avo-2.39.0 lib/avo/row_builder.rb
avo-2.38.0 lib/avo/row_builder.rb
avo-2.37.2 lib/avo/row_builder.rb
avo-2.37.1 lib/avo/row_builder.rb
avo-2.37.0 lib/avo/row_builder.rb
avo-2.36.3 lib/avo/row_builder.rb