Class: String

Inherits:
Object show all
Defined in:
lib/shoes/ruby.rb

Direct Known Subclasses

HH::Syntax::Token

Instance Method Summary collapse

Instance Method Details

#mindex(str) ⇒ Object



123
124
125
126
127
128
129
130
131
# File 'lib/shoes/ruby.rb', line 123

def mindex str
  n, links = 0, []
  loop do
    break unless n= self.index(str, n)
    links << n
    n += 1
  end
  links
end