module Pry::SendTweet
Constants
- CODENAME
- DEFAULT_BOX_HEIGHT
@return [Integer]
The default height of a box that contains a tweet or user.
- DEFAULT_BOX_WIDTH
@return [Integer]
The default width of a box that contains a tweet or user.
@api private
- DEFAULT_READ_SIZE
@return [Integer]
The number of tweets to request when reading tweets from Twitters API.
@api private
- VERSION
Public Class Methods
merge_yaml_file!(config, path)
click to toggle source
@api private
# 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