Module: Thbrk::InstanceMethods
- Defined in:
- lib/thbrk.rb
Instance Method Summary collapse
Instance Method Details
#word_break ⇒ Object
33 34 35 36 37 38 39 |
# File 'lib/thbrk.rb', line 33 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 |