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