Sha256: 537b2d6c71e512e27596349b5c25fac76330861347eb868fe66c125327bad39b

Contents?: true

Size: 624 Bytes

Versions: 9

Compression:

Stored size: 624 Bytes

Contents

module NCore
  module Builder
    extend ActiveSupport::Concern

    included do
      class_eval <<-INCL, __FILE__, __LINE__+1
        include NCore::Exceptions

        module Api
          include NCore::Configuration
        end

        class Resource
          extend Api
          include NCore::Base
        end
        class SingletonResource
          extend Api
          include NCore::SingletonBase
        end

        class GenericObject < Resource
        end

        class << self
          def configure(&block)
            Api.instance_eval(&block)
          end
        end
      INCL
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ncore-3.12.0 lib/ncore/builder.rb
ncore-3.11.0 lib/ncore/builder.rb
ncore-3.10.0 lib/ncore/builder.rb
ncore-3.9.1 lib/ncore/builder.rb
ncore-3.9.0 lib/ncore/builder.rb
ncore-3.8.1 lib/ncore/builder.rb
ncore-3.8.0 lib/ncore/builder.rb
ncore-3.7.1 lib/ncore/builder.rb
ncore-3.7.0 lib/ncore/builder.rb