Module: Core::Game::Alchemy

Defined in:
lib/game/alchemy/recipe.rb

Defined Under Namespace

Classes: Recipe

Class Method Summary collapse

Class Method Details

.find_recipe(name) ⇒ Object



17
18
19
20
21
22
23
# File 'lib/game/alchemy/recipe.rb', line 17

def self.find_recipe(name)
  @recipies.each { |item|
    if item.name == name
      return item
    end
  }
end

.recipiesObject



9
10
11
# File 'lib/game/alchemy/recipe.rb', line 9

def self.recipies
  return @recipies
end

.recipies=(ary) ⇒ Object



13
14
15
# File 'lib/game/alchemy/recipe.rb', line 13

def self.recipies=(ary)
  @recipies = ary
end