Class: LessSimple
- Inherits:
-
Object
- Object
- LessSimple
- Defined in:
- lib/less_simple.rb
Defined Under Namespace
Modules: InstanceMethods
Constant Summary collapse
- @@klass =
I18n::Backend::Simple
Class Method Summary collapse
Class Method Details
.factory_backend ⇒ Object
15 16 17 |
# File 'lib/less_simple.rb', line 15 def self.factory_backend subclass.new end |
.klass ⇒ Object
11 12 13 |
# File 'lib/less_simple.rb', line 11 def self.klass @@klass end |
.klass=(val) ⇒ Object
7 8 9 |
# File 'lib/less_simple.rb', line 7 def self.klass= val @@klass = val end |
.subclass ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/less_simple.rb', line 19 def self.subclass subclass = eval("class LessSimple::#{klass.to_s.gsub('::', '')} < #{klass}; self; end") subclass.class_eval do attr_accessor :interpolation_defaults include InstanceMethods end subclass end |