Permalink
Browse files

Ending tags are instances of IronRuby.Hpricot.IHpricotDataContainer.

  • Loading branch information...
1 parent eabfcd4 commit 21c61916ba7616426b7f671b94142c05a72ed71b @nrk committed Jul 18, 2010
Showing with 8 additions and 8 deletions.
  1. +2 −2 src/Data/ElementData.cs
  2. +2 −2 src/Elements/Element.cs
  3. +4 −4 src/Initializers.Generated.cs
View
@@ -5,7 +5,7 @@
namespace IronRuby.Hpricot {
public class ElementData : AttributeData {
private IList<Object> _children;
- private Object _etag;
+ private IHpricotDataContainer _etag;
private MutableString _raw;
private Object _ec;
private Int32 _name;
@@ -15,7 +15,7 @@ public class ElementData : AttributeData {
set { _children = value; }
}
- public Object ETag {
+ public IHpricotDataContainer ETag {
get { return _etag; }
set { _etag = value; }
}
View
@@ -54,12 +54,12 @@ public Element(RubyContext context)
}
[RubyMethod("etag")]
- public static Object GetEtag(Element/*!*/ self) {
+ public static IHpricotDataContainer GetEtag(Element/*!*/ self) {
return (self._data as ElementData).ETag;
}
[RubyMethod("etag=")]
- public static void SetEtag(Element/*!*/ self, Object/*!*/ etag) {
+ public static void SetEtag(Element/*!*/ self, IHpricotDataContainer/*!*/ etag) {
(self._data as ElementData).ETag = etag;
}
@@ -194,13 +194,13 @@ public sealed class HpricotLibraryInitializer : IronRuby.Builtins.LibraryInitial
);
DefineLibraryMethod(module, "etag", 0x11,
- 0x00000000U,
- new Func<IronRuby.Hpricot.Element, System.Object>(IronRuby.Hpricot.Element.GetEtag)
+ 0x00000000U,
+ new Func<IronRuby.Hpricot.Element, IronRuby.Hpricot.IHpricotDataContainer>(IronRuby.Hpricot.Element.GetEtag)
);
DefineLibraryMethod(module, "etag=", 0x11,
- 0x00000000U,
- new Action<IronRuby.Hpricot.Element, System.Object>(IronRuby.Hpricot.Element.SetEtag)
+ 0x00000000U,
+ new Action<IronRuby.Hpricot.Element, IronRuby.Hpricot.IHpricotDataContainer>(IronRuby.Hpricot.Element.SetEtag)
);
DefineLibraryMethod(module, "name", 0x11,

0 comments on commit 21c6191

Please sign in to comment.