Module: Integral::TextCalculations
- Defined in:
- lib/integral/text_calculations.rb
Class Method Summary collapse
-
.text_to_a4(text) ⇒ Object
need to replace with Integral::TextHelepr.
Class Method Details
.text_to_a4(text) ⇒ Object
need to replace with Integral::TextHelepr
7 8 9 10 11 12 |
# File 'lib/integral/text_calculations.rb', line 7 def self.text_to_a4(text) fail ArgumentError unless text.nil? || text.is_a?(String) str = text.to_s return 0 if str == "" (str.size / 1800.0).round(1) end |