class LinksGetter
Public Instance Methods
get_links_from_file()
click to toggle source
# File lib/links_getter.rb, line 2 def get_links_from_file contents = File.read(File.expand_path("../assets/lists.js", File.dirname(__FILE__))) return contents.partition("[").last.partition("]").first.split("\n") end