Class: Sparrowhawk::Entry

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (readonly)

Returns the value of attribute content.



4
5
6
# File 'lib/sparrowhawk/entry.rb', line 4

def content
  @content
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/sparrowhawk/entry.rb', line 4

def name
  @name
end