Class: Strling::Core::IRClassItem

Inherits:
Object
  • Object
show all
Defined in:
lib/strling/core/ir.rb

Overview

Base class for character class items in the IR.

Direct Known Subclasses

IRClassEscape, IRClassLiteral, IRClassRange

Instance Method Summary collapse

Instance Method Details

#to_dictHash

Serialize the item to hash representation.

Returns:

  • (Hash)

    Hash representation of the item

Raises:

  • (NotImplementedError)

    Must be implemented by subclasses



119
120
121
# File 'lib/strling/core/ir.rb', line 119

def to_dict
  raise NotImplementedError, 'Subclasses must implement to_dict'
end