Class: VER::Methods::Snippet::Scope

Inherits:
Struct
  • Object
show all
Defined in:
lib/ver/methods/snippet.rb

Constant Summary

Constants inherited from Struct

Struct::CACHE

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Struct

new

Instance Attribute Details

#tagsObject

Returns the value of attribute tags

Returns:

  • (Object)

    the current value of tags



96
97
98
# File 'lib/ver/methods/snippet.rb', line 96

def tags
  @tags
end

Instance Method Details

#include?(scope) ⇒ Boolean

Returns:

  • (Boolean)


97
98
99
# File 'lib/ver/methods/snippet.rb', line 97

def include?(scope)
  tags.include?(scope)
end