Module: Feedtxt
- Defined in:
- lib/feedtxt.rb,
lib/feedtxt/parser.rb,
lib/feedtxt/version.rb,
lib/feedtxt/parser/ini.rb,
lib/feedtxt/parser/json.rb,
lib/feedtxt/parser/yaml.rb
Overview
add shortcut / alias e.g.
lets you use:
Feedtxt.parse instead of Feedtxt::Parser.parse
Defined Under Namespace
Classes: IniParser, JsonParser, Parser, YamlParser
Constant Summary collapse
- INI =
note: add a shortcut; lets you use Feedtxt::INI.parse
IniParser
- YAML =
note: add a shortcut; lets you use Feedtxt::YAML.parse
YamlParser
- JSON =
note: add a shortcut; lets you use Feedttxt::JSON.parse
JsonParser
- MAJOR =
1
- MINOR =
0
- PATCH =
1
- VERSION =
[MAJOR,MINOR,PATCH].join('.')
Class Method Summary collapse
Class Method Details
.banner ⇒ Object
14 15 16 |
# File 'lib/feedtxt/version.rb', line 14 def self. "feedtxt/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]" end |
.parse(text, opts = {}) ⇒ Object
33 34 35 |
# File 'lib/feedtxt.rb', line 33 def self.parse( text, opts={} ) Parser.parse( text, ) end |
.root ⇒ Object
18 19 20 |
# File 'lib/feedtxt/version.rb', line 18 def self.root "#{File.( File.dirname(File.dirname(File.dirname(__FILE__))) )}" end |
.version ⇒ Object
10 11 12 |
# File 'lib/feedtxt/version.rb', line 10 def self.version VERSION end |