Class: Enumerator

Inherits:
Object
  • Object
show all
Defined in:
lib/textmate_grammar/util.rb

Overview

Provides to_s

Instance Method Summary collapse

Instance Method Details

#to_sString

Converts Enumerator to a string representing Integer.times

Returns:

  • (String)

    the Enumerator as a string



39
40
41
# File 'lib/textmate_grammar/util.rb', line 39

def to_s
    size.to_s + ".times"
end