Module: Rnote::Tag
- Defined in:
- lib/rnote/noun/tag/find.rb
Class Method Summary collapse
Class Method Details
.get_tag_by_name(tag_name) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/rnote/noun/tag/find.rb', line 6 def self.get_tag_by_name(tag_name) # TODO Do I really have to search through all tags manually? = $app.auth.client.note_store.listTags.select { |tag| tag.name.downcase == tag_name.downcase } if .empty? nil else .first end end |