Module: Thbrk::ClassMethods

Defined in:
lib/thbrk.rb

Instance Method Summary collapse

Instance Method Details

#define_thai_columns(*args) ⇒ Object



19
20
21
22
23
24
# File 'lib/thbrk.rb', line 19

def define_thai_columns(*args)
  @@thai_columns = []
  args.each do |arg|
    @@thai_columns << arg
  end
end

#thai_columnsObject



26
27
28
# File 'lib/thbrk.rb', line 26

def thai_columns
  @@thai_columns
end

#thbrkObject



11
12
13
14
15
16
17
# File 'lib/thbrk.rb', line 11

def thbrk
  send :include, InstanceMethods

  class_eval do
    before_save :word_break
  end
end