Class: Maven::Model::PluginManagement

Inherits:
Tag
  • Object
show all
Defined in:
lib/maven/model/model.rb

Instance Method Summary collapse

Methods inherited from Tag

_tags, #comment, #initialize, prepend_tags, tags

Constructor Details

This class inherits a constructor from Maven::Model::Tag

Instance Method Details

#_nameObject



129
130
131
# File 'lib/maven/model/model.rb', line 129

def _name
  "pluginManagement"
end

#plugin?(name) ⇒ Boolean

Returns:

  • (Boolean)


117
118
119
# File 'lib/maven/model/model.rb', line 117

def plugin?(name)
  plugins.key?(name)
end

#plugins(&block) ⇒ Object



109
110
111
112
113
114
115
# File 'lib/maven/model/model.rb', line 109

def plugins(&block)
  @plugins ||= PluginHash.new
  if block
    block.call(@plugins)
  end
  @plugins
end

#to_xml(buf = "", indent = "") ⇒ Object



121
122
123
124
125
126
127
# File 'lib/maven/model/model.rb', line 121

def to_xml(buf = "", indent = "")
  if @plugins.nil? || @plugins.size == 0
    ""
  else
    super
  end
end