Project

rxfhelper

0.0
Low commit activity in last 3 years
No release in over a year
Helpful library for primarily reading the contents of a file either from an HTTP address, local file, or DRb file system.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.2, >= 0.2.0
~> 0.4, >= 0.4.1
~> 0.5, >= 0.5.0
~> 0.2, >= 0.2.2
~> 0.5, >= 0.5.5
~> 0.4, >= 0.4.1
 Project Readme

Introducing the rxfhelper gem

RXFHelper.read accepts a string containing a URL, a file location, or just a plain string and returns the contents of the location otherwise it just returns the string.

e.g.

require 'rxfhelper'

#location = 'http://jamesrobertson.eu/index.html'
location = '/home/james/index.html'
#location = '<html><head><title>index</title></head><body><p>test</p></body></html>'
RXFHelper.read(location)

rxfhelper gem location url reader