Sha256: 1692d899439f3b41b33c10c55782f2048c75cbeecfe9929d0bc8f95fa51434c8

Contents?: true

Size: 195 Bytes

Versions: 2

Compression:

Stored size: 195 Bytes

Contents

# Класс который работает с дефисами и тире
class Dash
	# Заменяем -- на дефис
	def replace_dash(text)
		text = text.gsub(/[-][-]/, '—')
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rus_typograf-0.6.1 lib/rus_typograf/dash.rb
rus_typograf-0.6.0 lib/rus_typograf/dash.rb