Class: Sparrowhawk::Entry
- Inherits:
-
Object
- Object
- Sparrowhawk::Entry
- Defined in:
- lib/sparrowhawk/entry.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, content) ⇒ Entry
constructor
A new instance of Entry.
Constructor Details
#initialize(name, content) ⇒ Entry
Returns a new instance of Entry.
6 7 8 9 |
# File 'lib/sparrowhawk/entry.rb', line 6 def initialize name, content @name = name @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
4 5 6 |
# File 'lib/sparrowhawk/entry.rb', line 4 def content @content end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/sparrowhawk/entry.rb', line 4 def name @name end |