Skip to content

@ysr23 /gist:4118156
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
  1. ysr23 revised this gist . 1 changed file with 14 additions and 1 deletion.
    View
    15 gistfile1.md
    @@ -21,4 +21,17 @@ yet when i make reply 'by hand':
    => "@twellyme film"
    [5] pry(GuideSearch)> p reply.split
    ["@twellyme", "film"]
    - => ["@twellyme", "film"]
    + => ["@twellyme", "film"]
    +
    +
    +
    + [5] pry(GuideSearch)> p reply
    + "@twellyme film"
    + => "@twellyme film"
    + [6] pry(GuideSearch)> reply = reply.gsub(/[^[:print:]]/, ' ')
    + => "@twellyme film"
    + [8] pry(GuideSearch)> reply.split
    + => ["@twellyme film"]
    + [9] pry(GuideSearch)> p reply.split
    + ["@twellyme film"]
    + => ["@twellyme film"]
  2. ysr23 revised this gist . 1 changed file with 5 additions and 0 deletions.
    View
    5 gistfile1.md
    @@ -1,3 +1,8 @@
    + def self.process_tweet(reply, requestlink)
    + @requestlink = requestlink
    + qry = reply.downcase.split
    +
    +
    using a breakpoint to inspect 'reply' in my code - but cannot figure out why it is not splitting?
    [1] pry(GuideSearch)> p reply
  3. ysr23 revised this gist . 1 changed file with 2 additions and 2 deletions.
    View
    4 gistfile1.md
    @@ -10,10 +10,10 @@ using a breakpoint to inspect 'reply' in my code - but cannot figure out why it
    ["@twellyme film"]
    => ["@twellyme film"]
    -yet when i make reply 'by hand:
    +yet when i make reply 'by hand':
    [4] pry(GuideSearch)> reply = "@twellyme film"
    => "@twellyme film"
    [5] pry(GuideSearch)> p reply.split
    ["@twellyme", "film"]
    -=> ["@twellyme", "film"]
    + => ["@twellyme", "film"]
  4. ysr23 created this gist .
    View
    19 gistfile1.md
    @@ -0,0 +1,19 @@
    +using a breakpoint to inspect 'reply' in my code - but cannot figure out why it is not splitting?
    +
    + [1] pry(GuideSearch)> p reply
    + "@twellyme film"
    + => "@twellyme film"
    + [2] pry(GuideSearch)> p reply.class
    + String
    + => String
    + [3] pry(GuideSearch)> p reply.split
    + ["@twellyme film"]
    + => ["@twellyme film"]
    +
    +yet when i make reply 'by hand:
    +
    + [4] pry(GuideSearch)> reply = "@twellyme film"
    + => "@twellyme film"
    + [5] pry(GuideSearch)> p reply.split
    + ["@twellyme", "film"]
    +=> ["@twellyme", "film"]
Something went wrong with that request. Please try again.