Class: RDaux::Web::Site

Inherits:
Object
  • Object
show all
Defined in:
lib/rdaux/web/site.rb,
lib/rdaux/web/site/generator.rb

Defined Under Namespace

Classes: Generator, Section

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title, description, author, root) ⇒ Site

Returns a new instance of Site.



32
33
34
35
36
37
# File 'lib/rdaux/web/site.rb', line 32

def initialize(title, description, author, root)
  @title       = title
  @description = description
  @author      = author
  @root        = root
end

Instance Attribute Details

#authorObject (readonly)

Returns the value of attribute author.



4
5
6
# File 'lib/rdaux/web/site.rb', line 4

def author
  @author
end

#descriptionObject (readonly)

Returns the value of attribute description.



4
5
6
# File 'lib/rdaux/web/site.rb', line 4

def description
  @description
end

#rootObject (readonly)

Returns the value of attribute root.



4
5
6
# File 'lib/rdaux/web/site.rb', line 4

def root
  @root
end

#titleObject (readonly)

Returns the value of attribute title.



4
5
6
# File 'lib/rdaux/web/site.rb', line 4

def title
  @title
end

Instance Method Details

#sectionsObject



39
40
41
# File 'lib/rdaux/web/site.rb', line 39

def sections
  find_sections(@root)
end