Module: HasMachineTags::InstanceMethods
- Defined in:
- lib/has_machine_tags.rb
Instance Method Summary collapse
-
#current_tag_list(list) ⇒ Object
:nodoc:.
- #quick_mode_tag_list ⇒ Object
-
#tag_list ⇒ Object
Fetches latest tag list for an object.
-
#tag_list=(list) ⇒ Object
Set tag list with an array of tags or comma delimited string of tags.
Instance Method Details
#current_tag_list(list) ⇒ Object
:nodoc:
52 53 54 |
# File 'lib/has_machine_tags.rb', line 52 def current_tag_list(list) #:nodoc: TagList.new(list, :quick_mode=>self.quick_mode) end |
#quick_mode_tag_list ⇒ Object
61 62 63 |
# File 'lib/has_machine_tags.rb', line 61 def quick_mode_tag_list tag_list.to_quick_mode_string end |
#tag_list ⇒ Object
Fetches latest tag list for an object
57 58 59 |
# File 'lib/has_machine_tags.rb', line 57 def tag_list @tag_list ||= TagList.new(self..map(&:name)) end |
#tag_list=(list) ⇒ Object
Set tag list with an array of tags or comma delimited string of tags.
48 49 50 |
# File 'lib/has_machine_tags.rb', line 48 def tag_list=(list) @tag_list = current_tag_list(list) end |