class HTML5::Span

Overview

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

Defined in:

html5/token.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(start : Int32 = 0, end __arg0 : Int32 = 0) #

[View source]

Instance Method Detail

def clone #

[View source]
def end : Int32 #

[View source]
def end=(end __arg0 : Int32) #

[View source]
def start : Int32 #

[View source]
def start=(start : Int32) #

[View source]
def to_s(io : IO) : Nil #
Description copied from class Reference

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>

[View source]