lib/slack/block_kit/layout/context.rb in slack-ruby-block-kit-0.6.1 vs lib/slack/block_kit/layout/context.rb in slack-ruby-block-kit-0.7.0
- old
+ new
@@ -8,9 +8,10 @@
# https://api.slack.com/reference/messaging/blocks#context
class Context
TYPE = 'context'
attr_accessor :elements
+
def initialize(block_id: nil)
@block_id = block_id
@elements = []
yield(self) if block_given?