Sha256: cd1eca537b422937c729eab52e68a1ec164805fbaf2d77f49d779ee92fb21132

Contents?: true

Size: 461 Bytes

Versions: 82

Compression:

Stored size: 461 Bytes

Contents

module ZTK::DSL::Core

  # @author Zachary Patten <zachary AT jovelabs DOT com>
  # @api private
  module IO

    def self.included(base)
      base.class_eval do
        base.send(:extend, ZTK::DSL::Core::IO::ClassMethods)
      end
    end

    # @author Zachary Patten <zachary AT jovelabs DOT com>
    module ClassMethods

      def load(rb_file)
        new do
          instance_eval(::IO.read(rb_file), rb_file)
        end
      end

    end

  end
end

Version data entries

82 entries across 82 versions & 1 rubygems

Version Path
ztk-1.18.4 lib/ztk/dsl/core/io.rb
ztk-1.18.3 lib/ztk/dsl/core/io.rb
ztk-1.18.2 lib/ztk/dsl/core/io.rb
ztk-1.18.1 lib/ztk/dsl/core/io.rb
ztk-1.18.0 lib/ztk/dsl/core/io.rb
ztk-1.17.4 lib/ztk/dsl/core/io.rb
ztk-1.17.3 lib/ztk/dsl/core/io.rb
ztk-1.17.2 lib/ztk/dsl/core/io.rb
ztk-1.17.1 lib/ztk/dsl/core/io.rb
ztk-1.17.0 lib/ztk/dsl/core/io.rb
ztk-1.16.2 lib/ztk/dsl/core/io.rb
ztk-1.16.1 lib/ztk/dsl/core/io.rb
ztk-1.15.3 lib/ztk/dsl/core/io.rb
ztk-1.15.2 lib/ztk/dsl/core/io.rb
ztk-1.15.1 lib/ztk/dsl/core/io.rb
ztk-1.15.0 lib/ztk/dsl/core/io.rb
ztk-1.14.1 lib/ztk/dsl/core/io.rb
ztk-1.14.0 lib/ztk/dsl/core/io.rb
ztk-1.13.0 lib/ztk/dsl/core/io.rb
ztk-1.12.0 lib/ztk/dsl/core/io.rb