Skip to content

Commit

Permalink
EveOnline::SDE::TypeIDs#type_ids
Browse files Browse the repository at this point in the history
  • Loading branch information
biow0lf committed Sep 14, 2016
1 parent 713e498 commit 4b9134b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/eve_online/sde/type_ids.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ def initialize(file)
@file = file
end

def type_ids
@type_ids ||= begin
output = []
content.each do |entry|
output << TypeID.new(entry)
end
output
end
end

def content
@content ||= YAML.load(File.open(file))
end
Expand Down

0 comments on commit 4b9134b

Please sign in to comment.