Sha256: 12d4afad2690b76b966570826905c5ce650ab995bca03a64b0e7022590d286f2

Contents?: true

Size: 256 Bytes

Versions: 2

Compression:

Stored size: 256 Bytes

Contents

# frozen_string_literal: true
module Essay
  module FeatureHelper
    def is(thing)
      send(thing)
    end

    def not(thing)
      send(thing)
    end

    def with(thing, &block)
      obj = send(thing)
      block.call(obj) if obj
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
essay-1.0.2 lib/essay/helpers/feature_helper.rb
essay-1.0.1 lib/essay/helpers/feature_helper.rb