quattro_4 scribble

scribble 落書き (調べた事をただ落書きする)

Ruby5 #613

Ruby5 - Episode #613 - January 22nd, 2016

  • Rails Logo
  • Trends in Ruby
    • Gems created per year is in a downfall
  • Secondbase v1.0
    • two-database Rails application
    • config/database.yml
      • secondbase:
  • Simple Slack Bot
    • wrapping slack-ruby-client library
  • Ruby 2.3 Enumerable
    • grep_v
    • chunk_while
    • slice_when / slice_before / slice_after / each_cons
bot = SlackBot::Client.new

bot.add_command /Hello/ do |data|
  bot.message(data['channel'], "Hello. <@#{data['user']}>!")
end

bot.start!