Class Symbol
In: lib/charlie/etc/monkey.rb
Parent: Object

Methods

[]   intern   to_proc  

Classes and Modules

Class Symbol::Module

Public Instance methods

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

[Source]

     # File lib/charlie/etc/monkey.rb, line 105
105:   def [](*args)
106:     [self,*args]
107:   end

[Source]

     # File lib/charlie/etc/monkey.rb, line 113
113:   def intern
114:     self
115:   end

[Source]

     # File lib/charlie/etc/monkey.rb, line 109
109:   def to_proc
110:     Proc.new { |*args| args.shift.__send__(self, *args) }
111:   end

[Validate]