Sha256: b6ff879583acc2f101b48c87438333035bdf25e589261f5b29e612e3ce359210

Contents?: true

Size: 249 Bytes

Versions: 3

Compression:

Stored size: 249 Bytes

Contents

module Alephant::Views
  autoload :Base, 'alephant/views/base'

  @@views = {}

  def self.register(klass)
    id = klass.name.split('::').last
    @@views[id.underscore] = klass
  end

  def self.get_registered_class(id)
    @@views[id]
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
alephant-0.0.6-java lib/alephant/views.rb
alephant-0.0.5-java lib/alephant/views.rb
alephant-0.0.4-java lib/alephant/views.rb