Module: FFWD::Schema

Included in:
Default, Spotify100
Defined in:
lib/ffwd/schema.rb,
lib/ffwd/schema/default.rb,
lib/ffwd/schema/spotify100.rb

Defined Under Namespace

Modules: ClassMethods, Default, Spotify100 Classes: Loaded

Class Method Summary collapse

Class Method Details

.categoryObject



87
88
89
# File 'lib/ffwd/schema.rb', line 87

def self.category
  'schema'
end

.discoveredObject



72
73
74
# File 'lib/ffwd/schema.rb', line 72

def self.discovered
  @@discovered ||= {}
end

.included(mod) ⇒ Object



83
84
85
# File 'lib/ffwd/schema.rb', line 83

def self.included mod
  mod.extend ClassMethods
end

.load_discovered(source) ⇒ Object



91
92
93
94
95
96
97
# File 'lib/ffwd/schema.rb', line 91

def self.load_discovered source
  FFWD::Schema.discovered.each do |key, mod|
    FFWD::Schema.loaded[key] = Loaded.new source, mod
  end

  FFWD::Schema.discovered.clear
end

.loadedObject



68
69
70
# File 'lib/ffwd/schema.rb', line 68

def self.loaded
  @@loaded ||= {}
end