class Quotes
Класс для работы с кавычками
Public Instance Methods
replace_quote(text)
click to toggle source
Замена двойных кавычек на кавычки елочки
# File lib/rus_typograf/quotes.rb, line 4 def replace_quote(text) text = text.gsub(/[<][<]/, '«') text = text.gsub(/[>][>]/, '»') end