module Vainglory

Constants

VERSION

Attributes

heroes[RW]

Public Class Methods

hero(name = nil) click to toggle source
# File lib/vainglory.rb, line 10
def hero(name = nil)
  @heroes.fetch(name)
rescue KeyError
  raise HeroNameError, 'Invalid hero name'
end