Sha256: de24b7b3e6b1e56cf96e501edbcaade4b87739d0884a903b49051eb2a082a0e5
Contents?: true
Size: 514 Bytes
Versions: 171
Compression:
Stored size: 514 Bytes
Contents
require "expressir/model" module Expressir module Express # @abstract class ModelVisitor def visit(node) node.class.model_attrs.each do |variable| value = node.send(variable) if value.is_a? Array value.each do |value| if value.is_a? Model::ModelElement visit(value) end end elsif value.is_a? Model::ModelElement visit(value) end end end end end end
Version data entries
171 entries across 171 versions & 1 rubygems