Dillon Welch
cac943e891
Add frozen_string_literal in all .rb files
...
I noticed these files all had strings such as "", " ", "_" that were
allocated each time some common methods were called, over 1000x on a
page in my app. This comment freezes all of these strings such that
they're only allocated once, saving many KB of memory allocation.
2017-11-27 17:06:18 -08:00
Rafael Mendonça França
15f0101545
Pass the options hash instead of the Leaf object
...
Right now we only care about the options so lets make the code simpler
2014-03-11 19:41:25 -03:00
Rafael Mendonça França
e9384fb4bd
Whitespaces
2014-03-11 19:13:59 -03:00
Rafael Mendonça França
44f22ca3fb
Make context optional
...
We plan to make it required in the future but it is optional now to make
easier to implement backwards compatibility
2014-03-11 15:22:45 -03:00
Rafael Mendonça França
645988a855
Pass the context when rendering the component
2014-03-10 18:41:36 -03:00
Renato Mascarenhas
34312c9fbc
Use 1.9 hash style on code and docs.
2013-01-28 19:02:59 -02:00
José Valim
e8749ae07e
Add class default options to avoid has_*? checks.
2011-12-04 13:29:59 +01:00
José Valim
6bf59dd508
Get rid of the enabled/disabled in favor of has_*? syntax.
2011-12-04 12:29:53 +01:00
José Valim
f32b5184a6
Bring tests back to life.
2010-11-07 10:18:37 +01:00
José Valim
b1df90790e
Add block support.
2010-01-10 05:12:57 +01:00