Class: REGO::Block::Head

Inherits:
Template show all
Defined in:
lib/rego/block/html.rb

Instance Method Summary collapse

Methods inherited from Template

#initialize, #method_missing

Constructor Details

This class inherits a constructor from REGO::Block::Template

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class REGO::Block::Template

Instance Method Details

#resultObject

Raises:

  • (::StandardError)


20
21
22
23
24
25
# File 'lib/rego/block/html.rb', line 20

def result
	raise ::StandardError::new( 'no title in head' ) unless @title
	<<-HTML
		<title>#{@title}</title>
	HTML
end