Class: RubyHackernews::TextService
- Inherits:
-
Object
- Object
- RubyHackernews::TextService
- Includes:
- MechanizeContext
- Defined in:
- lib/ruby-hackernews/services/text_service.rb
Instance Method Summary collapse
Methods included from MechanizeContext
#[], #agent, agent=, #authenticated?, #require_authentication
Instance Method Details
#get_text(page) ⇒ Object
6 7 8 |
# File 'lib/ruby-hackernews/services/text_service.rb', line 6 def get_text(page) return TextParser.new(page.search("table")[2]).parse end |