Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ending tags are instances of IronRuby.Hpricot.IHpricotDataContainer.

  • Loading branch information...
commit 21c61916ba7616426b7f671b94142c05a72ed71b 1 parent eabfcd4
@nrk authored
View
4 src/Data/ElementData.cs
@@ -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
4 src/Elements/Element.cs
@@ -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;
}
View
8 src/Initializers.Generated.cs
@@ -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,
Please sign in to comment.
Something went wrong with that request. Please try again.