Module: Rika
- Defined in:
- lib/rika.rb,
lib/rika/version.rb
Overview
Defined Under Namespace
Classes: Parser, Translator
Constant Summary
collapse
- VERSION =
"1.9.0"
Class Method Summary
collapse
Class Method Details
.parse_content(file_location, max_content_length = -1)) ⇒ Object
39
40
41
42
|
# File 'lib/rika.rb', line 39
def self.parse_content(file_location, max_content_length = -1)
parser = Parser.new(file_location, max_content_length)
parser.content
end
|
.parse_content_and_metadata(file_location, max_content_length = -1)) ⇒ Object
34
35
36
37
|
# File 'lib/rika.rb', line 34
def self.parse_content_and_metadata(file_location, max_content_length = -1)
parser = Parser.new(file_location, max_content_length)
[parser.content, parser.metadata]
end
|
.parse_main_content(file_location, max_content_length = -1)) ⇒ Object
44
45
46
47
|
# File 'lib/rika.rb', line 44
def self.parse_main_content(file_location, max_content_length = -1)
parser = Parser.new(file_location, max_content_length)
parser.main_content
end
|
49
50
51
52
|
# File 'lib/rika.rb', line 49
def self.parse_metadata(file_location)
parser = Parser.new(file_location, 0)
parser.metadata
end
|