Class: Sparrowhawk::WebXmlEntry
- Inherits:
-
Object
- Object
- Sparrowhawk::WebXmlEntry
- Defined in:
- lib/sparrowhawk/web_xml_entry.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #content ⇒ Object
-
#initialize(*args) ⇒ WebXmlEntry
constructor
A new instance of WebXmlEntry.
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
#name ⇒ Object (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
#content ⇒ Object
11 12 13 |
# File 'lib/sparrowhawk/web_xml_entry.rb', line 11 def content raise NotImplementedError, "#content should be implemented in a subclass" end |