class SuperList
Public Class Methods
[](name)
click to toggle source
# File lib/super_list.rb, line 21 def self.[](name) @@data[name] end
new(name, values, options={})
click to toggle source
# File lib/super_list.rb, line 16 def initialize(name, values, options={}) options = { :i18n_scope => name}.merge(options) @@data[name] = Data.new(values, options) end
options()
click to toggle source
# File lib/super_list.rb, line 12 def self.options Thread.current[:super_list_options] || @@options end
options=(options)
click to toggle source
# File lib/super_list.rb, line 8 def self.options=(options) Thread.current[:super_list_options] = @@options.merge(options) end