Class: ValueGraphTransformation::Function

Inherits:
Graph::Vertex show all
Defined in:
lib/value_graph_transformation/function.rb

Overview

An abstract base class that represents a function, where inputs and outputs are connected to Value objects.

Direct Known Subclasses

Arithmetic::Add, Arithmetic::Div, Arithmetic::Mul, Arithmetic::Sub

Specifications

is a Vertex

Instance Attribute Summary

Attributes inherited from Graph::Vertex

#sources, #targets

Instance Method Summary (collapse)

Methods inherited from Graph::Vertex

#initialize, #source_vertices, #target_vertices

Constructor Details

This class inherits a constructor from ValueGraphTransformation::Graph::Vertex

Instance Method Details

- (String) symbol

Returns the symbol that represents this function.

Returns:

  • (String)

    the symbol that represents this function.



9
10
11
# File 'lib/value_graph_transformation/function.rb', line 9

def symbol
  self.class.name.split('::').last
end