Sha256: ef36a4f13d5eef834599c5c9a58d5a06c331df681cdc832769fdf7e518d6b115

Contents?: true

Size: 318 Bytes

Versions: 9

Compression:

Stored size: 318 Bytes

Contents

module Weka
  module Concerns
    module Buildable
      def self.included(base)
        base.extend ClassMethods
      end

      module ClassMethods
        def build(&block)
          instance = new
          instance.instance_eval(&block) if block_given?
          instance
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
weka-0.8.0-java lib/weka/concerns/buildable.rb
weka-0.7.4-java lib/weka/concerns/buildable.rb
weka-0.7.3-java lib/weka/concerns/buildable.rb
weka-0.7.2-java lib/weka/concerns/buildable.rb
weka-0.7.1-java lib/weka/concerns/buildable.rb
weka-0.7.0-java lib/weka/concerns/buildable.rb
weka-0.6.0-java lib/weka/concerns/buildable.rb
weka-0.5.0-java lib/weka/concerns/buildable.rb
weka-0.4.0-java lib/weka/concerns/buildable.rb