Sha256: b86cdb970b0e502f51606b317d3fd02709b65c31944d494d58e5fbe0137b106f

Contents?: true

Size: 500 Bytes

Versions: 3

Compression:

Stored size: 500 Bytes

Contents

module Clevic

  # Tricky, this. Keeps passing on the dataset and
  # lets it build up, but keeps the result.
  # Used in the UI block to make a nice syntax for specifying the dataset.
  class DatasetRoller
    def initialize( original_dataset )
      @rolling_dataset = original_dataset
    end
    
    def dataset
      @rolling_dataset
    end
    
    def method_missing(meth, *args, &block)
      @rolling_dataset = @rolling_dataset.send( meth, *args, &block )
      self
    end
  end
  

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
clevic-0.13.0.b9 lib/clevic/dataset_roller.rb
clevic-0.13.0.b6 lib/clevic/dataset_roller.rb
clevic-0.13.0.b5 lib/clevic/dataset_roller.rb