Module: BlueFeather
- Defined in:
- lib/bluefeather.rb,
lib/bluefeather/cui.rb
Defined Under Namespace
Modules: EncodingType, HeaderIDType, Util
Classes: CUI, Document, EncodingError, Error, FormatError, Parser
Constant Summary
collapse
- VERSION =
'0.40'
- VERSION_NUMBER =
0.40
- RELEASE_DATE =
'2010-04-29'
- VERSION_LABEL =
"#{VERSION} (#{RELEASE_DATE})"
- UTF8_BOM =
"\xef\xbb\xbf"
- UTF8_BOM_PATTERN =
/^#{UTF8_BOM}/
Class Method Summary
collapse
Class Method Details
.parse_document(src, default_enc = EncodingType::UTF8) ⇒ Object
.parse_document_file(path, default_enc = EncodingType::UTF8) ⇒ Object
.parse_text(src) ⇒ Object
Also known as:
parse
56
57
58
|
# File 'lib/bluefeather.rb', line 56
def parse_text(src)
Parser.new.parse_text(src)
end
|
.parse_text_file(path) ⇒ Object
Also known as:
parse_file