module Pokedex
Constants
- VERSION
Public Class Methods
all()
click to toggle source
# File lib/pokedex.rb, line 12 def all File.join(root, 'data/pokedex.json').then do |name| File.open(name).then do |file| JSON.parse(file.read) end end end
region()
click to toggle source
# File lib/pokedex.rb, line 20 def region File.join(root, 'data/regions.json').then do |name| File.open(name).then do |file| JSON.parse(file.read) end end end
Private Class Methods
root()
click to toggle source
# File lib/pokedex.rb, line 30 def root Gem::Specification.find_by_name('pokemon').gem_dir end