Method: Mathemagical::LaTeX::Scanner#skip_space_and

Defined in:
lib/mathemagical/latex.rb

#skip_space_and(check_mode) ⇒ Object



45
46
47
48
49
50
51
# File 'lib/mathemagical/latex.rb', line 45

def skip_space_and(check_mode)
	opos = pos
	scan_space
	r = yield
	self.pos = opos if check_mode || !r
	r
end