Class: CSVPlusPlus::Entities::Entity

Inherits:
Object
  • Object
show all
Extended by:
T::Helpers, T::Sig
Defined in:
lib/csv_plus_plus/entities/entity.rb

Overview

All classes that are a part of an AST must implement this interface

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ boolean

Each node in the AST needs to implement #== so we can compare entities for equality

Parameters:

Returns:

  • (boolean)


19
# File 'lib/csv_plus_plus/entities/entity.rb', line 19

def ==(other); end

#evaluate(position) ⇒ ::String

Uses the given position to evaluate itself in the current context

Parameters:

  • position (Position)

    The current runtime

Returns:

  • (::String)


29
# File 'lib/csv_plus_plus/entities/entity.rb', line 29

def evaluate(position); end