Skip to content

Instantly share code, notes, and snippets.

$title = [['ゼロの使い魔', 'ヤマグチノボル', 'MF文庫'],
['バカとテストと召還獣', '井上賢二', 'ファミ通文庫'],
... ]
$title = [['ゼロの使い魔', 'ヤマグチノボル', 'MF文庫'],
['バカとテストと召還獣', '井上賢二', 'ファミ通文庫'],
...
]
use strict;
use warnings;
use Data::Dumper;
print "hello gist world!!"
# -*- coding: utf-8 -*-
$have_title = {'ゼロの使い魔' => [1,2,3],
'バカとテストと召還獣' => [1,2,3,4,5],
'涼宮ハルヒ' => [1,2,3,4,5,6]}
class Ranobe
def buy_new_books(new_title)
new_title.each do |new_book|
title = new_book[0]
volume = new_book[1]
# -*- coding: utf-8 -*-
$have_title = {'Bob' => [1,2,3],
'Michael' => [1,2,3,4,5],
'Tom' => [1,2,3,4,5,6]}
class Ranobe
def buy_new_books(new_title)
new_title.each do |new_book|
title = new_book[0]
volume = new_book[1]
# -*- coding: utf-8 -*-
$have_title = {'Bob' => [1,2,3],
'Michael' => [1,2,3,4,5],
'Tom' => [1,2,3,4,5,6]}
class Ranobe
def buy_new_books(new_title)
new_title.each do |new_book|
title = new_book[0]
volume = new_book[1]
# -*- coding: utf-8 -*-
$have_title = {'Bob' => [1,2,3],
'Michael' => [1,2,3,4,5],
'Tom' => [1,2,3,4,5,6]}
class Ranobe
def buy_new_books(new_title)
new_title.each do |new_book|
title = new_book[0]
volume = new_book[1]
# -*- coding: utf-8 -*-
$have_title = {'BakaTesu' => [1,2,3],
'ZeroNo' => [1,2,3,4,5],
'Haruhi' => [1,2,3,4,5,6]}
class Ranobe
def buy_new_books(new_title)
new_title.each do |new_book|
title = new_book[0]
volume = new_book[1]
$have_title = {
'BakaTesu' =>
{
'volumes' => [1,2,3],
'publisher' => 'ファミ通文庫',
},
'ZeroNo' =>
{
'volumes' =>[1,2,3,4,5],
'publisher' => 'ほげほげ',
$have_title = {
'BakaTesu' =>
{
'volumes' => [1,2,3],
'publisher' => 'ファミ通文庫',
},
'ZeroNo' =>
{
'volumes' => [1,2,3,4,5],
'publisher' => 'ほげほげ',