Sha256: 066461c8b834c770a0406753ec29b7836718573b4e7eaf783a372c0f49ab35a6

Contents?: true

Size: 274 Bytes

Versions: 2

Compression:

Stored size: 274 Bytes

Contents

module Raisin
  module Exposable
    extend ActiveSupport::Concern

    included do
      attr_reader :exposure, :lazy_expose
    end

    def expose(name, &block)
      @exposure = name
      @lazy_expose = block
    end

    def expose?
      !!@exposure
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
raisin-0.0.2 lib/raisin/exposable.rb
raisin-0.0.1 lib/raisin/exposable.rb