Class: Symbol

Inherits:
Object
  • Object
show all
Defined in:
lib/termtter/system_extensions/core_compatibles.rb,
lib/termtter/system_extensions/core_compatibles.rb

Instance Method Summary collapse

Instance Method Details

#sizeObject


19
20
21
# File 'lib/termtter/system_extensions/core_compatibles.rb', line 19

def size
  self.to_s.size
end

#to_procObject


11
12
13
# File 'lib/termtter/system_extensions/core_compatibles.rb', line 11

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