Sha256: c3d2fcbb01510ccf86cf7477d3ff5d719f475de3b854d31fc0c255e8f995b46c
Contents?: true
Size: 395 Bytes
Versions: 2
Compression:
Stored size: 395 Bytes
Contents
module Finitio module Syntax module Heading def attributes(factory) captures[:attribute].map{|x| x.compile(factory) } end def compile(factory) Finitio::Heading.new(attributes(factory)) end def to_ast captures[:attribute].map(&:to_ast).unshift(:heading) end end # module Heading end # module Syntax end # module Finitio
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
finitio-0.4.1 | lib/finitio/syntax/heading.rb |
finitio-0.4.0 | lib/finitio/syntax/heading.rb |