Class: BNF::Heading
- Inherits:
-
Object
- Object
- BNF::Heading
- Defined in:
- lib/bnf/heading.rb
Instance Attribute Summary collapse
-
#title ⇒ Object
Returns the value of attribute title.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri, entry) ⇒ Heading
constructor
A new instance of Heading.
Constructor Details
#initialize(uri, entry) ⇒ Heading
Returns a new instance of Heading.
7 8 9 10 11 12 13 |
# File 'lib/bnf/heading.rb', line 7 def initialize uri, entry @uri = uri @entry = entry @title = entry['title'] end |
Instance Attribute Details
#title ⇒ Object
Returns the value of attribute title.
5 6 7 |
# File 'lib/bnf/heading.rb', line 5 def title @title end |
#uri ⇒ Object
Returns the value of attribute uri.
5 6 7 |
# File 'lib/bnf/heading.rb', line 5 def uri @uri end |