module Essay::FeatureHelper

Public Instance Methods

is(thing) click to toggle source
# File lib/essay/helpers/feature_helper.rb, line 6
def is(thing)
  try(thing)
end
not(thing) click to toggle source
# File lib/essay/helpers/feature_helper.rb, line 10
def not(thing)
  try(thing)
end
with(thing, &block) click to toggle source
# File lib/essay/helpers/feature_helper.rb, line 14
def with(thing, &block)
  obj = try(thing)
  block.call(obj) if obj
end