Class: String
Overview
mixin => String
Instance Method Summary collapse
Instance Method Details
#invalid_letters? ⇒ Boolean
89 90 91 92 93 94 95 96 |
# File 'lib/ita2.rb', line 89 def invalid_letters? invalid = 0 self.downcase.each_char do |char| invalid += 1 unless FIGS.include?(char) or LTRS.include?(char) end return invalid if invalid > 0 false end |
#to_ita2 ⇒ Object
81 82 83 |
# File 'lib/ita2.rb', line 81 def to_ita2 codes(self) end |
#to_punchcode(on = "#", off = "\s") ⇒ Object
85 86 87 |
# File 'lib/ita2.rb', line 85 def to_punchcode(on = "#", off = "\s") pretty_string(self, on, off) end |