Find file
Fetching contributors…
Cannot retrieve contributors at this time
63 lines (52 sloc) 1.49 KB
using System;
using IronRuby.Runtime;
using IronRuby.Builtins;
namespace IronRuby.Hpricot {
public class ScannerState {
private RubyContext _context;
private IHpricotDataContainer _doc;
private IHpricotDataContainer _focus;
private IHpricotDataContainer _last;
private Hash _ec;
private bool _xml;
private bool _strict;
private bool _fixup;
public ScannerState(RubyContext context) {
_context = context;
}
public IHpricotDataContainer Doc {
get { return _doc; }
set { _doc = value; }
}
public IHpricotDataContainer Focus {
get { return _focus; }
set { _focus = value; }
}
public IHpricotDataContainer Last {
get { return _last; }
set { _last = value; }
}
public Hash EC {
get { return _ec; }
set { _ec = value; }
}
public bool Xml {
get { return _xml; }
set { _xml = value; }
}
public bool Strict {
get { return _strict; }
set {
_strict = value;
Fixup = true;
}
}
public bool Fixup {
get { return _fixup; }
set { _fixup = value; }
}
public RubyContext Context {
get { return _context; }
}
}
}