Sha256: 2e5f3a8b255c7bfbf842604024070c0804ed7309089cee334ab3c9897044fbee

Contents?: true

Size: 377 Bytes

Versions: 16

Compression:

Stored size: 377 Bytes

Contents

module Finitio
  module Syntax
    module HeadingExtra
      include Node

      capture :extra_type

      def compile(factory)
        { allow_extra: extra_type ? extra_type.compile(factory) : true }
      end

      def to_ast
        { allow_extra: extra_type ? extra_type.to_ast : true }
      end

    end # module HeadingExtra
  end # module Syntax
end # module Finitio

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
finitio-0.12.0 lib/finitio/syntax/type/heading_extra.rb
finitio-0.11.4 lib/finitio/syntax/type/heading_extra.rb
finitio-0.11.3 lib/finitio/syntax/type/heading_extra.rb
finitio-0.11.2 lib/finitio/syntax/type/heading_extra.rb
finitio-0.11.1 lib/finitio/syntax/type/heading_extra.rb
finitio-0.10.0 lib/finitio/syntax/type/heading_extra.rb
finitio-0.9.1 lib/finitio/syntax/type/heading_extra.rb
finitio-0.9.0 lib/finitio/syntax/type/heading_extra.rb
finitio-0.8.0 lib/finitio/syntax/type/heading_extra.rb
finitio-0.7.0 lib/finitio/syntax/type/heading_extra.rb
finitio-0.7.0.pre.rc4 lib/finitio/syntax/type/heading_extra.rb
finitio-0.7.0.pre.rc3 lib/finitio/syntax/type/heading_extra.rb
finitio-0.7.0.pre.rc2 lib/finitio/syntax/type/heading_extra.rb
finitio-0.7.0.pre.rc1 lib/finitio/syntax/type/heading_extra.rb
finitio-0.6.1 lib/finitio/syntax/type/heading_extra.rb
finitio-0.6.0 lib/finitio/syntax/type/heading_extra.rb