Sha256: b03506c22d602499348fe4b7ee9de22b8747a56faca66bd481f1da5bd58bd911

Contents?: true

Size: 1.29 KB

Versions: 52

Compression:

Stored size: 1.29 KB

Contents

class Pry
  module DefaultCommands

    EasterEggs = Pry::CommandSet.new do

      command(/!s\/(.*?)\/(.*?)/, "") do |source, dest|
        eval_string.gsub!(/#{source}/) { dest }
        run "show-input"
      end

      command "east-coker", "" do
        text = %{
--
Now the light falls
Across the open field, leaving the deep lane
Shuttered with branches, dark in the afternoon,
Where you lean against a bank while a van passes,
And the deep lane insists on the direction
Into the village, in the electric heat
Hypnotised. In a warm haze the sultry light
Is absorbed, not refracted, by grey stone.
The dahlias sleep in the empty silence.
Wait for the early owl.
-- T.S Eliot
            }
        output.puts text
        text
      end

      command "cohen-poem", "" do
        text = %{
--
When this American woman,
whose thighs are bound in casual red cloth,
comes thundering past my sitting place
like a forest-burning Mongol tribe,
the city is ravished
and brittle buildings of a hundred years
splash into the street;
and my eyes are burnt
for the embroidered Chinese girls,
already old,
and so small between the thin pines
on these enormous landscapes,
that if you turn your head
they are lost for hours.
                  -- Leonard Cohen
                }
  output.puts text
  text
end


    end

  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
pry-0.9.7.3 lib/pry/default_commands/easter_eggs.rb
pry-0.9.7.3-i386-mswin32 lib/pry/default_commands/easter_eggs.rb
pry-0.9.7.3-i386-mingw32 lib/pry/default_commands/easter_eggs.rb
pry-0.9.7.3-java lib/pry/default_commands/easter_eggs.rb
pry-0.9.7.2 lib/pry/default_commands/easter_eggs.rb
pry-0.9.7.2-i386-mswin32 lib/pry/default_commands/easter_eggs.rb
pry-0.9.7.2-i386-mingw32 lib/pry/default_commands/easter_eggs.rb
pry-0.9.7.2-java lib/pry/default_commands/easter_eggs.rb
pry-0.9.7.1 lib/pry/default_commands/easter_eggs.rb
pry-0.9.7.1-i386-mswin32 lib/pry/default_commands/easter_eggs.rb
pry-0.9.7.1-i386-mingw32 lib/pry/default_commands/easter_eggs.rb
pry-0.9.7.1-java lib/pry/default_commands/easter_eggs.rb
pry-0.9.7 lib/pry/default_commands/easter_eggs.rb
pry-0.9.7-i386-mswin32 lib/pry/default_commands/easter_eggs.rb
pry-0.9.7-i386-mingw32 lib/pry/default_commands/easter_eggs.rb
pry-0.9.7-java lib/pry/default_commands/easter_eggs.rb
pry-0.9.6.2 lib/pry/default_commands/easter_eggs.rb
pry-0.9.6.2-i386-mswin32 lib/pry/default_commands/easter_eggs.rb
pry-0.9.6.2-i386-mingw32 lib/pry/default_commands/easter_eggs.rb
pry-0.9.6.2-java lib/pry/default_commands/easter_eggs.rb