Module: Thbrk::InstanceMethods

Defined in:
lib/thbrk.rb

Instance Method Summary collapse

Instance Method Details

#word_breakObject


32
33
34
35
36
37
38
# File 'lib/thbrk.rb', line 32

def word_break
  thai_break_text = []
  self.class.thai_columns.each do |thai_column|
    thai_break_text << self.send(thai_column) unless self.send(thai_column).nil?
  end
  self.thbrk = thai_break_text.join(" ").gsub(","," ").to_thbrk
end