Sha256: 404c4990bf237555631d9f2d9c2a9bee97d1f72451379480ecaa285d69576358

Contents?: true

Size: 247 Bytes

Versions: 3

Compression:

Stored size: 247 Bytes

Contents

# encoding: UTF-8

module GoodData
  module Mixin
    module MetaPropertyReader
      def metadata_property_reader(*props)
        props.each do |prop|
          define_method prop, proc { meta[prop.to_s] }
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gooddata-0.6.7 lib/gooddata/mixins/meta_property_reader.rb
gooddata-0.6.6 lib/gooddata/mixins/meta_property_reader.rb
gooddata-0.6.5 lib/gooddata/mixins/meta_property_reader.rb