Sha256: 8f0ff2d8ba74d04af3293ad06561e44247a962b8562724d888248fc767d2e1fb

Contents?: true

Size: 490 Bytes

Versions: 10

Compression:

Stored size: 490 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

10 entries across 10 versions & 1 rubygems

Version Path
clevic-0.14.6 lib/clevic/dataset_roller.rb
clevic-0.14.5 lib/clevic/dataset_roller.rb
clevic-0.14.4 lib/clevic/dataset_roller.rb
clevic-0.14.3 lib/clevic/dataset_roller.rb
clevic-0.14.2 lib/clevic/dataset_roller.rb
clevic-0.14.1 lib/clevic/dataset_roller.rb
clevic-0.14.0 lib/clevic/dataset_roller.rb
clevic-0.13.0.b12 lib/clevic/dataset_roller.rb
clevic-0.13.0.b11 lib/clevic/dataset_roller.rb
clevic-0.13.0.b10 lib/clevic/dataset_roller.rb