Class: Oakdex::Pokedex::Type

Inherits:
Base
  • Object
show all
Defined in:
lib/oakdex/pokedex/type.rb

Overview

Represents the type of a Pokemon

Instance Attribute Summary

Attributes inherited from Base

#attributes

Instance Method Summary collapse

Methods inherited from Base

add_to_all, all, find, find!, #initialize, json_folder, #method_missing, reset!, #respond_to_missing?, translate, where

Constructor Details

This class inherits a constructor from Oakdex::Pokedex::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Oakdex::Pokedex::Base

Instance Method Details

#effectivness_for(other_type) ⇒ Object



10
11
12
# File 'lib/oakdex/pokedex/type.rb', line 10

def effectivness_for(other_type)
  public_send(:effectivness)[other_type]
end