class

HTML5::Span

Inherits Reference < Object

Span is a range of bytes in a Tokenizer's buffer. The start is inclusive, the end is exclusive. :nodoc:

Constructors

new(start : Int32 = 0, end __arg0 : Int32 = 0)
Source

Instance methods

clone
Source
end=(end __arg0 : Int32)
Source
start
Source
start=(start : Int32)
Source
to_s(io : IO) : Nil

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
Source