Class: Ruleby::Core::Assertion

Inherits:
Struct
  • Object
show all
Defined in:
lib/core/nodes.rb

Instance Method Summary collapse

Instance Method Details

#add_tag(tag, value) ⇒ Object



994
995
996
997
# File 'lib/core/nodes.rb', line 994

def add_tag(tag, value)
  @tags ||= {}
  @tags[tag] = value
end

#tagsObject



999
1000
1001
# File 'lib/core/nodes.rb', line 999

def tags
  @tags ? @tags : {}
end