struct

Merlin::Token(IdentT)

Inherits Struct < Value < Object

Constructors

new(name : IdentT, pattern : Regex, adaptive : Bool = false)
Source

Instance methods

adaptive
clone
Source
copy_with(name _name = @name, pattern _pattern = @pattern, adaptive _adaptive = @adaptive)
Source
name
pattern
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source