Sha256: fa918c3d82d2e766e586010b2e936587e5ec599c2189f274b7cafa07c88894f3

Contents?: true

Size: 313 Bytes

Versions: 4

Compression:

Stored size: 313 Bytes

Contents

# frozen_string_literal: true

module UI
  module Common
    module HasButtons
      private

      def parse_buttons(buttons)
        return [] if buttons.nil? || buttons.empty?
        buttons.map do |button|
          button[:type] = button[:type].to_s
          button
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubotnik-0.2.3 lib/ui/common/has_buttons.rb
rubotnik-0.2.2 lib/ui/common/has_buttons.rb
rubotnik-0.2.1 lib/ui/common/has_buttons.rb
rubotnik-0.2.0 lib/ui/common/has_buttons.rb