Method: Apdown#text_used_content

Defined in:
lib/apdown.rb

#text_used_content(type) ⇒ Object



7
8
9
10
11
# File 'lib/apdown.rb', line 7

def text_used_content(type)
  (apdown_text || '').scan(Apdown.parse_regex(type)).each_with_object([]) do |match, used_numbers|
    used_numbers << match[1].to_i
  end
end