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


134
135
136
137
138
139
140
141
142
# File 'lib/shoes/ruby.rb', line 134

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