Module: Riddler::Includeable

Included in:
Element, Step
Defined in:
lib/riddler/includeable.rb

Instance Method Summary collapse

Instance Method Details

#include?Boolean

Returns:

  • (Boolean)


3
4
5
6
# File 'lib/riddler/includeable.rb', line 3

def include?
  return true unless has_include_predicate?
  Predicator.evaluate include_predicate, context.to_liquid
end

#include_predicateObject



8
9
10
# File 'lib/riddler/includeable.rb', line 8

def include_predicate
  definition["include_predicate"]
end