Class: Sparrowhawk::WebXmlEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/sparrowhawk/web_xml_entry.rb

Direct Known Subclasses

RackWebXmlEntry, RailsWebXmlEntry

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ WebXmlEntry

Returns a new instance of WebXmlEntry.



7
8
9
# File 'lib/sparrowhawk/web_xml_entry.rb', line 7

def initialize *args
  @name = "WEB-INF/web.xml"
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/sparrowhawk/web_xml_entry.rb', line 5

def name
  @name
end

Instance Method Details

#contentObject

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/sparrowhawk/web_xml_entry.rb', line 11

def content
  raise NotImplementedError, "#content should be implemented in a subclass"
end