Sha256: 5433a6d861d73fe84d552011ea9f1af839f9e8ff06013823f740d4fd09139947

Contents?: true

Size: 497 Bytes

Versions: 20

Compression:

Stored size: 497 Bytes

Contents

module Liquidscript
  module Scanner
    class Base
      module DSL

        module ClassMethods

          def define
            builder.instance_exec(&Proc.new)
            contexts.merge builder.contexts
            self.default = builder.default_context
            builder.reset!
          end

          def builder
            @_builder ||= Builder.new
          end

        end

        def self.included(base)
          base.extend ClassMethods
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
liquidscript-0.7.9 lib/liquidscript/scanner/base/dsl.rb
liquidscript-0.7.8 lib/liquidscript/scanner/base/dsl.rb
liquidscript-0.7.7 lib/liquidscript/scanner/base/dsl.rb
liquidscript-0.7.6 lib/liquidscript/scanner/base/dsl.rb
liquidscript-0.7.5 lib/liquidscript/scanner/base/dsl.rb
liquidscript-0.7.4 lib/liquidscript/scanner/base/dsl.rb
liquidscript-0.7.3 lib/liquidscript/scanner/base/dsl.rb
liquidscript-0.7.2 lib/liquidscript/scanner/base/dsl.rb
liquidscript-0.7.1 lib/liquidscript/scanner/base/dsl.rb
liquidscript-0.7.0 lib/liquidscript/scanner/base/dsl.rb
liquidscript-0.6.5 lib/liquidscript/scanner/base/dsl.rb
liquidscript-0.6.4 lib/liquidscript/scanner/base/dsl.rb
liquidscript-0.6.3 lib/liquidscript/scanner/base/dsl.rb
liquidscript-0.6.2 lib/liquidscript/scanner/base/dsl.rb
liquidscript-0.6.1 lib/liquidscript/scanner/base/dsl.rb
liquidscript-0.6.0 lib/liquidscript/scanner/base/dsl.rb
liquidscript-0.5.1 lib/liquidscript/scanner/base/dsl.rb
liquidscript-0.5.0 lib/liquidscript/scanner/base/dsl.rb
liquidscript-0.4.1 lib/liquidscript/scanner/base/dsl.rb
liquidscript-0.4.0 lib/liquidscript/scanner/base/dsl.rb