Class: Tomahawk::DirectiveGroups::GenericDirectiveGroup

Inherits:
Base
  • Object
show all
Defined in:
lib/tomahawk/directive_groups/generic_directive_group.rb

Instance Attribute Summary

Attributes inherited from Base

#directives, #groups, #parameters

Instance Method Summary collapse

Methods inherited from Base

#==, #initialize, #to_s

Constructor Details

This class inherits a constructor from Tomahawk::DirectiveGroups::Base

Instance Method Details

#nameObject

Raises:

  • (NameError)


8
9
10
# File 'lib/tomahawk/directive_groups/generic_directive_group.rb', line 8

def name
  raise NameError, "Generic directive group found, but no name set – don't know how to proceed"
end

#to_str(generator = Generators::GenericDirectiveGroup) ⇒ Object



4
5
6
# File 'lib/tomahawk/directive_groups/generic_directive_group.rb', line 4

def to_str(generator = Generators::GenericDirectiveGroup)
  generator.new(self).to_s
end