Sha256: 3ac232f92098d7a58ad4efbb4b84e23f9149d8956aa073320b5a141638ff1d3f
Contents?: true
Size: 739 Bytes
Versions: 2
Compression:
Stored size: 739 Bytes
Contents
# # text.rb - a text module of LangScan # # Copyright (C) 2004-2005 Satoru Takabayashi <satoru@namazu.org> # All rights reserved. # This is free software with ABSOLUTELY NO WARRANTY. # # You can redistribute it and/or modify it under the terms of # the GNU General Public License version 2. # require 'langscan/_common' module LangScan module Text module_function def name "Text" end def abbrev "text" end def extnames [".txt"] end # LangScan::Text.scan iterates over text file. # It yields for each Fragment. def scan(input, &block) yield(Fragment.new(:text, input, 1, 0)) end LangScan.register(self) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
langscan-1.2-x86-mswin32-60 | lib/langscan/text.rb |
langscan-1.2 | lib/langscan/text.rb |