Class: GuideEmUp::Index
- Inherits:
-
Struct
- Object
- Struct
- GuideEmUp::Index
- Defined in:
- lib/guide-em-up/index.rb
Defined Under Namespace
Classes: FileEntry
Instance Attribute Summary collapse
-
#current_dir ⇒ Object
Returns the value of attribute current_dir.
-
#data_dir ⇒ Object
Returns the value of attribute data_dir.
-
#root ⇒ Object
Returns the value of attribute root.
-
#themes ⇒ Object
Returns the value of attribute themes.
Instance Method Summary collapse
Instance Attribute Details
#current_dir ⇒ Object
Returns the value of attribute current_dir
2 3 4 |
# File 'lib/guide-em-up/index.rb', line 2 def current_dir @current_dir end |
#data_dir ⇒ Object
Returns the value of attribute data_dir
2 3 4 |
# File 'lib/guide-em-up/index.rb', line 2 def data_dir @data_dir end |
#root ⇒ Object
Returns the value of attribute root
2 3 4 |
# File 'lib/guide-em-up/index.rb', line 2 def root @root end |
#themes ⇒ Object
Returns the value of attribute themes
2 3 4 |
# File 'lib/guide-em-up/index.rb', line 2 def themes @themes end |
Instance Method Details
#html ⇒ Object
5 6 7 8 9 |
# File 'lib/guide-em-up/index.rb', line 5 def html file = File.join(data_dir, "/browser.erb") tmpl = File.read(file) Erubis::Eruby.new(tmpl).result(to_hash) end |