Sha256: f4c8bbbaebcf2e4e77fcd26b6e0483942e28912dd32b3380ada262fe16bb82a5
Contents?: true
Size: 647 Bytes
Versions: 133
Compression:
Stored size: 647 Bytes
Contents
#!/usr/bin/env ruby require 'expressir' require 'expressir/express_exp/parser' # This file is from: # https://github.com/metanorma/annotated-express/blob/master/data/resources/action_schema/action_schema.exp file = 'action_schema.exp' # repo = Expressir::ExpressExp::Parser.from_exp(file) # schema = repo.schemas.find{|schema| schema.id == "support_resource_schema"} repo = Expressir::ExpressExp::Parser.from_exp(file) schema = repo.schemas.find{|schema| schema.id == "action_schema"} entity = schema.entities.find{|entity| entity.id == "action_directive_relationship"} where = entity.where.find{|where| where.id == "WR1"} puts where.inspect
Version data entries
133 entries across 133 versions & 1 rubygems