Module: Buildkite::Pipelines::Helpers::Block
- Defined in:
- lib/buildkite/pipelines/helpers/block.rb
Instance Method Summary collapse
Instance Method Details
#block(*args, emoji: nil) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/buildkite/pipelines/helpers/block.rb', line 7 def block(*args, emoji: nil) if emoji emoji = Array(emoji).map { |name| ":#{name}:" }.join args[0] = [emoji, args.first].compact.join(' ') end super(*args) end |