Class: Rubrowser::Parser::Directory
- Inherits:
-
Object
- Object
- Rubrowser::Parser::Directory
- Defined in:
- lib/rubrowser/parser/directory.rb
Instance Attribute Summary collapse
-
#directory ⇒ Object
readonly
Returns the value of attribute directory.
Instance Method Summary collapse
- #definitions ⇒ Object
-
#initialize(directory) ⇒ Directory
constructor
A new instance of Directory.
- #parse ⇒ Object
- #relations ⇒ Object
Constructor Details
Instance Attribute Details
#directory ⇒ Object (readonly)
Returns the value of attribute directory.
4 5 6 |
# File 'lib/rubrowser/parser/directory.rb', line 4 def directory @directory end |
Instance Method Details
#definitions ⇒ Object
16 17 18 |
# File 'lib/rubrowser/parser/directory.rb', line 16 def definitions parsers.map(&:definitions).map(&:to_a).reduce([], :+) end |
#parse ⇒ Object
12 13 14 |
# File 'lib/rubrowser/parser/directory.rb', line 12 def parse parsers.each(&:parse) end |
#relations ⇒ Object
20 21 22 |
# File 'lib/rubrowser/parser/directory.rb', line 20 def relations parsers.map(&:relations).map(&:to_a).reduce([], :+) end |