Class: SuperList
- Inherits:
-
Object
- Object
- SuperList
- Defined in:
- lib/super_list.rb
Defined Under Namespace
Classes: Data
Constant Summary collapse
- @@options =
{ :use_i18n => false}
- @@data =
ActiveSupport::OrderedHash.new
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name, values, options = {}) ⇒ SuperList
constructor
A new instance of SuperList.
Constructor Details
Class Method Details
.[](name) ⇒ Object
21 22 23 |
# File 'lib/super_list.rb', line 21 def self.[](name) @@data[name] end |
.options ⇒ Object
12 13 14 |
# File 'lib/super_list.rb', line 12 def self. Thread.current[:super_list_options] || @@options end |
.options=(options) ⇒ Object
8 9 10 |
# File 'lib/super_list.rb', line 8 def self.() Thread.current[:super_list_options] = @@options.merge() end |