Sha256: 194b87a6e77e573d9bdad20e83e0dd407e597609dbe381a2b651062f1a1a92c6

Contents?: true

Size: 668 Bytes

Versions: 1

Compression:

Stored size: 668 Bytes

Contents

#!/usr/bin/env ruby

require "bundler/setup"
require "slack-block-kit"

include Slack::BlockKit::ExecutionContext

def pbpaste
  require 'json'
  puts JSON.pretty_generate eval(`pbpaste`).map(&:to_h).yield_self { |h| { blocks: h } }
end

def to_json(array)
  require 'json'
  puts JSON.pretty_generate Array(array).map(&:to_h).yield_self { |h| { blocks: h } }
end

# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.

# (If you use this, don't forget to add pry to your Gemfile!)
# require "pry"
# Pry.start

require "irb"
require "irb/completion"
IRB.start(__FILE__)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slack-block-kit-0.1.0 bin/console