Module: Essay::FeatureHelper
- Included in:
- AbstractFeatures
- Defined in:
- lib/essay/helpers/feature_helper.rb
Instance Method Summary collapse
Instance Method Details
#is(thing) ⇒ Object
6 7 8 |
# File 'lib/essay/helpers/feature_helper.rb', line 6 def is(thing) try(thing) end |
#not(thing) ⇒ Object
10 11 12 |
# File 'lib/essay/helpers/feature_helper.rb', line 10 def not(thing) try(thing) end |
#with(thing, &block) ⇒ Object
14 15 16 17 |
# File 'lib/essay/helpers/feature_helper.rb', line 14 def with(thing, &block) obj = try(thing) block.call(obj) if obj end |