Class: Symbol

Inherits:
Object
  • Object
show all
Defined in:
lib/charlie/etc/monkey.rb

Instance Method Summary collapse

Instance Method Details

#[](*args) ⇒ Object

This function was added because :npoint just looks so much nicer than [:npoint,3]



97
98
99
# File 'lib/charlie/etc/monkey.rb', line 97

def [](*args)
  [self,*args]
end

#internObject



105
106
107
# File 'lib/charlie/etc/monkey.rb', line 105

def intern
  self
end

#to_procObject



101
102
103
# File 'lib/charlie/etc/monkey.rb', line 101

def to_proc
  Proc.new { |*args| args.shift.__send__(self, *args) }
end