Class: BNF::Heading

Inherits:
Object
  • Object
show all
Defined in:
lib/bnf/heading.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#titleObject

Returns the value of attribute title.



5
6
7
# File 'lib/bnf/heading.rb', line 5

def title
  @title
end

#uriObject

Returns the value of attribute uri.



5
6
7
# File 'lib/bnf/heading.rb', line 5

def uri
  @uri
end