Method: CWM::UIState#matches?

Defined in:
library/cwm/src/lib/cwm/ui_state.rb

#matches?(page, candidate) ⇒ Boolean (protected)

Whether the given page matches with the candidate tree node

Parameters:

  • page (CWM::Page)
  • candidate (Integer, String)

Returns:

  • (Boolean)

    boolean



182
183
184
# File 'library/cwm/src/lib/cwm/ui_state.rb', line 182

def matches?(page, candidate)
  page.label == candidate
end