Sha256: 9a1d7dba0bc5642cb5981011c1afd7a83cb389ebe09ccc1c224fef291231297a
Contents?: true
Size: 370 Bytes
Versions: 6
Compression:
Stored size: 370 Bytes
Contents
class Code class Node class Code < Node def initialize(statements) statements = [] if statements.to_s.blank? @statements = statements.map { |statement| ::Code::Node::Statement.new(statement) } end def evaluate(**args) @statements.map { |statement| statement.evaluate(**args) }.last end end end end
Version data entries
6 entries across 6 versions & 2 rubygems