Class: Agate::Formatter::Plain

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/agate/formatter/plain.rb

Overview

Echoes back the text passed to it.

> 勉【べん】強【きょう】します

Class Method Summary collapse

Class Method Details

.format(match) ⇒ Object

Turns a regexp match object into a formatted string with ruby characters



13
14
15
# File 'lib/agate/formatter/plain.rb', line 13

def self.format(match)
  "#{match[1]}#{match[2]}#{match[3]}#{match[4]}"
end