Sha256: 3a98c24d8913eb7e9249853fb5abea7ac18e41d4449e41ea06920d6b815c9726

Contents?: true

Size: 507 Bytes

Versions: 5

Compression:

Stored size: 507 Bytes

Contents

#-Ku required on command line...
def ♥(name)
  puts "I ♥ you, #{name}!"
end

♥ ARGV.shift
#p ?♥ #not til 1.9
p :♥
#♥

def spade; :sam end
def club; :sangwich end

=begin ♥
♥♥♥
 ♥
=end ♥

alias heart ♥
alias :heart2 :♥
undef ♥
alias ♥ spade
undef :♥
alias :♥ :club

♥ 2

$♥=2
 
class A♥
  @@♥=3
  def new
    @♥=4
  end

  def show
    ♥=4
    p $♥,@@♥,@♥,♥
  end
end

A♥.new.show

alias $heart $♥

p $heart

p '♥'
p %w[♥ b c♥ d ♥e f♥g]

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubylexer-0.8.0 test/data/heart.rb
rubylexer-0.7.7 test/data/heart.rb
rubylexer-0.7.6 test/data/heart.rb
rubylexer-0.7.4 test/data/heart.rb
rubylexer-0.7.5 test/data/heart.rb