Class: Debci::HTML::Rooted

Inherits:
Object
  • Object
show all
Defined in:
lib/debci/html.rb

Direct Known Subclasses

JSON

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRooted

Returns a new instance of Rooted.



36
37
38
39
# File 'lib/debci/html.rb', line 36

def initialize
  data_basedir = Debci.config.data_basedir
  @root = Pathname(data_basedir) / datadir
end

Instance Attribute Details

#datadirObject (readonly)

Returns the value of attribute datadir.



34
35
36
# File 'lib/debci/html.rb', line 34

def datadir
  @datadir
end

#rootObject (readonly)

Returns the value of attribute root.



34
35
36
# File 'lib/debci/html.rb', line 34

def root
  @root
end