Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 6b5a1fc8a6
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (30 sloc) 0.985 kb
using System;
using System.Text;
using System.Diagnostics;
using IronRuby.Builtins;
using IronRuby.Runtime;
using Microsoft.Scripting;
using Microsoft.Scripting.Runtime;
namespace IronRuby.Hpricot {
[RubyClass("Text", Inherits = typeof(BaseElement), DefineIn = typeof(Hpricot))]
public class Text : BaseElement {
public Text(ScannerState state)
: this(state.Context) {
}
public Text(RubyContext context)
: base(context) {
}
[RubyConstructor]
public static Text Allocator(RubyClass/*!*/ self) {
return new Text(self.Context);
}
[RubyMethod("content")]
public static MutableString GetContent(Text/*!*/ self) {
return self._data.Tag;
}
[RubyMethod("content=")]
public static void SetContent(Text/*!*/ self, MutableString/*!*/ content) {
self._data.Tag = content;
}
}
}
Jump to Line
Something went wrong with that request. Please try again.