module Bz

Constants

SINGLES
VERSION

Public Class Methods

all_titles() click to toggle source
# File lib/bz.rb, line 13
def self.all_titles
  SINGLES.map{ |i| i["title"] }
end
live_gym() click to toggle source
# File lib/bz.rb, line 21
def self.live_gym
  puts "B'zのLIVE-GYMにようこそ~"
end
release_year(song) click to toggle source
# File lib/bz.rb, line 9
def self.release_year(song)
  SINGLES.select{|i| i["title"].eql?(song)}.first["year"]
end
this_year_songs(year) click to toggle source
# File lib/bz.rb, line 17
def self.this_year_songs(year)
  SINGLES.group_by { |i| i["year"] }[year]
end