Sha256: 80112d51d498be47b047aae7ed31b5180badcc00dbee6fcd7d773b9a3bb19a0d

Contents?: true

Size: 587 Bytes

Versions: 1

Compression:

Stored size: 587 Bytes

Contents

#!/usr/bin/env ruby

require 'expressir'
require 'expressir/express_exp/parser'

file = '/Users/mulgogi/src/mn/annotated-express/data/resources/action_schema/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

1 entries across 1 versions & 1 rubygems

Version Path
expressir-0.2.0 demo.rb