Method: Machinery::ElementFilter#filters_scope?

Defined in:
lib/element_filter.rb

#filters_scope?(scope) ⇒ Boolean

Returns:

  • (Boolean)


83
84
85
# File 'lib/element_filter.rb', line 83

def filters_scope?(scope)
  (path =~ /\/#{scope}(\/|$)/) ? true : false
end