lib/slackert/blocks.rb
def add_section_text(message, type = 'mrkdwn')
        raise ArgumentError, 'Maximum number of characters in text exceeded' if message.length > 3000

        @text = {
          'type': type,
          'text': message
        }
      end
# Adds a text object on top of the section. There can only be one section text added. Adding more will replace
# the previously added section text. It is limited to 3000 characters.
# @param message [String] section text message
# @param type [String] can be either mrkdwn or plain_text
#
Adds a text object on top of the section. There can only be one section text added. Adding more will replace
the previously added section text. It is limited to 3000 characters.
Adds a text object on top of the section . There can only be one section text added . Adding more will replace the previously added section text . It is limited to 3000 characters .
def add_section_text(message, type = 'mrkdwn')
        raise ArgumentError, 'Maximum number of characters in text exceeded' if message.length > 3000
        @text = {
          'type': type,
          'text': message
        }
      end
def add_section_text ( message , type = 'mrkdwn' ) raise ArgumentError , 'Maximum number of characters in text exceeded' if message . length > 3000 @text = { 'type' : type , 'text' : message } end
Adds a text object on top of the section.
Adds a text object on top of the section .
message
section text message
section text message
type
can be either mrkdwn or plain_text
can be either mrkdwn or plain_text