Module: Inform::TagHelpers

Included in:
Taggable
Defined in:
lib/runtime/tag.rb

Overview

The Inform::TagHelpers module

Instance Method Summary collapse

Instance Method Details

#attributesObject



184
# File 'lib/runtime/tag.rb', line 184

def attributes; tags; end

#has(*args) ⇒ Object



185
# File 'lib/runtime/tag.rb', line 185

def has(*args); tag(*args); end

#has?(*args) ⇒ Boolean

Returns:

  • (Boolean)


187
# File 'lib/runtime/tag.rb', line 187

def has?(*args); tagged_with_all?(*args); end

#hasany?(*args) ⇒ Boolean

Returns:

  • (Boolean)


188
# File 'lib/runtime/tag.rb', line 188

def hasany?(*args); tagged_with_any?(*args); end

#hasnt(*args) ⇒ Object Also known as: has!



186
# File 'lib/runtime/tag.rb', line 186

def hasnt(*args); untag(*args); end

#hasnt?(*args) ⇒ Boolean

Returns:

  • (Boolean)


189
# File 'lib/runtime/tag.rb', line 189

def hasnt?(*args); tagged_with_none?(*args); end