Sha256: 22734fe1ba407e5ee67d8ad38748f2b4a04ee2f249282a048b51646862e10fe9

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.2.0'

    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.2.0 lib/slack/block_kit.rb