lib/twitter/base.rb
# Dynamically define a method for a URI
#
# @param key1 [Symbol]
# @param key2 [Symbol]
Dynamically define a method for a URI
Dynamically define a method for a URI
def define_uri_method(key1, key2)
        define_method(key1) do
          Addressable::URI.parse(@attrs[key2].chomp('#')) unless @attrs[key2].nil?
        end
        memoize(key1)
      end
def define_uri_method ( key1 , key2 ) define_method ( key1 ) do Addressable :: URI . parse ( @attrs [ key2 ] . chomp ( '#' ) ) unless @attrs [ key2 ] . nil? end memoize ( key1 ) end
Dynamically define a method for a URI
Dynamically define a method for a URI
key1
<not_specific>
key2
<not_specific>
<not_specific>
None