Class: Struct::LangScanPair

Inherits:
Object show all
Defined in:
lib/langscan/_pairmatcher.rb,
lib/langscan/scheme.rb

Instance Method Summary collapse

Instance Method Details

#each_outerObject



16
17
18
19
20
21
# File 'lib/langscan/scheme.rb', line 16

def each_outer
  ret = self
  while o = ret.outer
    yield o
  end
end

#outmostObject



16
17
18
19
20
21
22
# File 'lib/langscan/_pairmatcher.rb', line 16

def outmost
  ret = self
  while o = ret.outer
    ret = o
  end
  ret
end