Sha256: aadde5ff74069a54621fb264dcd9a80f36a7eaf737209a9ea4c71d448512927c
Contents?: true
Size: 178 Bytes
Versions: 1
Compression:
Stored size: 178 Bytes
Contents
module Italic def parse line parse_line = line.sub(/\b_(\w*)_\b/){|s| "<I>#$1</I>"} return line if parse_line == nil parse_line end module_function :parse end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wparser-0.0.2 | lib/wparser/inline/italic.rb |