Sha256: 97d868ad983d31db165d55e0c0062b7470030cc772d0d18cdb024cfb43645ac3
Contents?: true
Size: 564 Bytes
Versions: 10
Compression:
Stored size: 564 Bytes
Contents
require_relative 'casting_node' module ConceptQL module Nodes class Person < CastingNode def my_type :person end def i_point_at [] end def these_point_at_me # I could list ALL the types we use, but the default behavior of casting, # when there is no explicit casting defined, is to convert everything to # person IDs # # So by defining no known castable relationships in this node, all # types will be converted to person [] end end end end
Version data entries
10 entries across 10 versions & 1 rubygems