Class: Enumerator
- Inherits:
-
Object
- Object
- Enumerator
- Defined in:
- lib/ruby_grammar_builder/util.rb
Overview
Provides to_s
Instance Method Summary collapse
-
#to_s ⇒ String
Converts Enumerator to a string representing Integer.times.
Instance Method Details
#to_s ⇒ String
Converts Enumerator to a string representing Integer.times
40 41 42 |
# File 'lib/ruby_grammar_builder/util.rb', line 40 def to_s size.to_s + ".times" end |