Module: BlueFeather

Defined in:
lib/bluefeather.rb,
lib/bluefeather/cui.rb

Defined Under Namespace

Modules: EncodingType, Util Classes: CUI, Document, EncodingError, Error, FormatError, Parser

Constant Summary collapse

VERSION =
'0.33'
VERSION_NUMBER =
0.33
RELEASE_DATE =
'2009-11-22'
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



62
63
64
# File 'lib/bluefeather.rb', line 62

def parse_document(src, default_enc = EncodingType::UTF8)
	Parser.new.parse_document(src, default_enc)
end

.parse_document_file(path, default_enc = EncodingType::UTF8) ⇒ Object



73
74
75
# File 'lib/bluefeather.rb', line 73

def parse_document_file(path, default_enc = EncodingType::UTF8)
	Parser.new.parse_document_file(path, default_enc)
end

.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



67
68
69
# File 'lib/bluefeather.rb', line 67

def parse_text_file(path)
	Parser.new.parse_text_file(path)
end