https://github.com/bumi/dealbase_text
just an experment, ignore ;)
https://github.com/bumi/dealbase_text
Last synced: about 2 months ago
JSON representation
just an experment, ignore ;)
- Host: GitHub
- URL: https://github.com/bumi/dealbase_text
- Owner: bumi
- License: mit
- Created: 2012-07-23T00:15:33.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2012-07-23T00:18:56.000Z (almost 14 years ago)
- Last Synced: 2025-01-01T18:31:42.609Z (over 1 year ago)
- Language: Ruby
- Size: 102 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DealbaseText
stolen from https://github.com/twitter/twitter-text-rb/blob/master/lib/twitter-text/extractor.rb to extract screen names from any given text
## Usage
DealbaseText::Extractor.new(text).screen_names
DealbaseText::Extractor.new(text).screen_names do |sceen_name| ... end
DealbaseText::Extractor.new(text).screen_names_with_indices
DealbaseText::Extractor.new(text).screen_names_with_indices do |sceen_name, begin_char_index, end_char_index| ... end
## Installation
Add this line to your application's Gemfile:
gem 'dealbase_text'
And then execute:
$ bundle
Or install it yourself as:
$ gem install dealbase_text