class Astronomy::Information

Constants

DATA_FILE

Attributes

data[R]

Public Class Methods

new() click to toggle source
# File lib/astronomy.rb, line 10
def initialize
  @data = YAML.load_file(DATA_FILE)
end

Public Instance Methods

categories() click to toggle source
# File lib/astronomy.rb, line 14
def categories
  @data.keys
end
topics(category) click to toggle source
# File lib/astronomy.rb, line 18
def topics(category)
  @data[category]
end