Module: Thbrk::ClassMethods
- Defined in:
- lib/thbrk.rb
Instance Method Summary collapse
Instance Method Details
#define_thai_columns(*args) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/thbrk.rb', line 20 def define_thai_columns(*args) @@thai_columns = [] args.each do |arg| @@thai_columns << arg end end |
#thai_columns ⇒ Object
27 28 29 |
# File 'lib/thbrk.rb', line 27 def thai_columns @@thai_columns end |
#thbrk ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/thbrk.rb', line 12 def thbrk send :include, InstanceMethods class_eval do before_save :word_break end end |