Class: Agate::Formatter::Strip

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

Overview

Strips ruby text from a string.

> 勉強します

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/strip.rb', line 13

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