Sha256: b567629366ad543d88f7f317afbedc365eb9548a5b5c7e49ee117f21292c06cc

Contents?: true

Size: 297 Bytes

Versions: 13

Compression:

Stored size: 297 Bytes

Contents

# encoding: UTF-8

require_relative 'meta_getter'

module GoodData
  module Mixin
    module MetaPropertyWriter
      def metadata_property_writer(*props)
        props.each do |prop|
          define_method "#{prop}=", proc { |val| meta[prop.to_s] = val }
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
gooddata-0.6.20 lib/gooddata/mixins/meta_property_writer.rb
gooddata-0.6.19 lib/gooddata/mixins/meta_property_writer.rb
gooddata-0.6.18 lib/gooddata/mixins/meta_property_writer.rb
gooddata-0.6.17 lib/gooddata/mixins/meta_property_writer.rb
gooddata-0.6.16 lib/gooddata/mixins/meta_property_writer.rb
gooddata-0.6.15 lib/gooddata/mixins/meta_property_writer.rb
gooddata-0.6.14 lib/gooddata/mixins/meta_property_writer.rb
gooddata-0.6.13 lib/gooddata/mixins/meta_property_writer.rb
gooddata-0.6.12 lib/gooddata/mixins/meta_property_writer.rb
gooddata-0.6.11 lib/gooddata/mixins/meta_property_writer.rb
gooddata-0.6.10 lib/gooddata/mixins/meta_property_writer.rb
gooddata-0.6.9 lib/gooddata/mixins/meta_property_writer.rb
gooddata-0.6.8 lib/gooddata/mixins/meta_property_writer.rb