Class: LinksGetter
- Inherits:
-
Object
- Object
- LinksGetter
- Defined in:
- lib/links_getter.rb
Instance Method Summary collapse
Instance Method Details
#get_links_from_file ⇒ Object
2 3 4 5 6 |
# File 'lib/links_getter.rb', line 2 def get_links_from_file contents = File.read(File.("../assets/lists.js", File.dirname(__FILE__))) return contents.partition("[").last.partition("]").first.split("\n") end |