Module: NoteRenderer::ClassMethods

Defined in:
public/app/models/note_renderer.rb

Instance Method Summary collapse

Instance Method Details

#handles_notes(types) ⇒ Object



23
24
25
# File 'public/app/models/note_renderer.rb', line 23

def handles_notes(types)
  @note_types = types
end

#handles_type?(type) ⇒ Boolean

Returns:

  • (Boolean)


27
28
29
# File 'public/app/models/note_renderer.rb', line 27

def handles_type?(type)
  @note_types.include?(type)
end