Module: Pry::SendTweet
- Defined in:
- lib/pry-send_tweet.rb,
lib/pry/send_tweet/version.rb
Defined Under Namespace
Modules: PagingSupport, TTYPatch, TweetRenderer, UserRenderer Classes: BaseCommand, ReadTweets, SendTweet, TwitterAction, TwitterIO, TwitterSearch
Constant Summary collapse
- DEFAULT_BOX_WIDTH =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Returns The default width of a box that contains a tweet or user.
100
- DEFAULT_BOX_HEIGHT =
Returns The default height of a box that contains a tweet or user.
8
- DEFAULT_READ_SIZE =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Returns The number of tweets to request when reading tweets from Twitters API.
200
- VERSION =
'1.20.84'
- CODENAME =
'@barackobama is a wannabe halfcast nigger https://www.youtube.com/watch?v=BgfcToAjfdc'
Class Method Summary collapse
Class Method Details
.merge_yaml_file!(config, path) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
46 47 48 49 50 51 52 53 54 |
# File 'lib/pry-send_tweet.rb', line 46 def self.merge_yaml_file!(config, path) if File.readable?(path) warn "[warning] Reading pry-send_tweet configuration from '#{path}'." twitter_config = YAML.safe_load File.binread(path) config.twitter = Pry::Config.from_hash(twitter_config) end rescue => e warn "[warning] Error parsing '#{path}' .. (#{e.class})." end |