Sha256: 4052c4a5ef3940a072e46eb4a7b8d8c24b6999a924814a7e368209da25f6650f

Contents?: true

Size: 334 Bytes

Versions: 6

Compression:

Stored size: 334 Bytes

Contents

# frozen_string_literal: true

module Mensa
  module Table
    class Component < ::Mensa::ApplicationComponent
      include TablesHelper

      attr_reader :table

      def initialize(table_name, config = {}, **options)
        @table = Mensa.for_name(table_name, config)
        @table.component = self
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mensa-0.1.10 app/components/mensa/table/component.rb
mensa-0.1.9 app/components/mensa/table/component.rb
mensa-0.1.7 app/components/mensa/table/component.rb
mensa-0.1.6 app/components/mensa/table/component.rb
mensa-0.1.4 app/components/mensa/table/component.rb
mensa-0.1.3 app/components/mensa/table/component.rb