module UI::Common::HasButtons

Private Instance Methods

parse_buttons(buttons) click to toggle source
# File lib/ui/common/has_buttons.rb, line 8
def parse_buttons(buttons)
  return [] if buttons.nil? || buttons.empty?
  buttons.map do |button|
    button[:type] = button[:type].to_s
    button
  end
end