Method: RMQViewData#has_tag?

Defined in:
lib/project/ruby_motion_query/rmq_view_data.rb

#has_tag?(tag_name = nil) ⇒ Boolean

Check if this view contains a specific tag

Parameters:

  • tag_name (defaults to: nil)

    name of tag to check

Returns:

  • (Boolean)

    true if this view has the tag provided



84
85
86
87
88
89
90
# File 'lib/project/ruby_motion_query/rmq_view_data.rb', line 84

def has_tag?(tag_name = nil)
  if tag_name
    tags.include?(tag_name)
  else
    RMQ.is_blank?(@_tags)
  end
end