Sha256: ea94561a3cf1dd8c6aee5f2e70ce1d8fa5588f9013f0238fb32a6c11d9e82a8f
Contents?: true
Size: 868 Bytes
Versions: 1
Compression:
Stored size: 868 Bytes
Contents
# frozen_string_literal: true # Utilities module Utilities @atome_list = [] @particle_list = [] @renderer_list = [:html, :headless, :server] def self.renderer_list(atome = nil) @renderer_list end def self.atome_list(atome = nil) # this method is used to hold all available type of atomes if atome instance_variable_get('@atome_list').push(atome) else instance_variable_get('@atome_list') end end # def self.particle_list(particle = nil) # this method is used to hold all available type of particles if particle instance_variable_get('@particle_list').push(particle) else instance_variable_get('@particle_list') end end def self.grab(params) atome_found = nil Universe.atomes.each do |atome| atome_found = atome if atome.id == params end atome_found end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
atome-0.4.5.4 | lib/atome/extensions/utilities.rb |