Sha256: de6d8612278a81a5782e8afa9be114f781c2c0ce8d2933137de99d6ce53562a3

Contents?: true

Size: 641 Bytes

Versions: 1

Compression:

Stored size: 641 Bytes

Contents

# frozen_string_literal: true

module Slack
  module BlockKit
    module Composition; end
    module Element; end
    module Layout; end

    VERSION = '0.3.2'

    Dir[File.join(__dir__, 'block_kit', 'composition', '*.rb')].each { |file| require file }
    Dir[File.join(__dir__, 'block_kit', 'element', '*.rb')].each { |file| require file }
    Dir[File.join(__dir__, 'block_kit', 'layout', '*.rb')].each { |file| require file }
    Dir[File.join(__dir__, 'block_kit', '*.rb')].each { |file| require file }

    module_function

    def blocks
      blocks = Blocks.new

      yield(blocks) if block_given?

      blocks
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slack_block_kit-0.3.2 lib/slack/block_kit.rb