Class: HIR

Inherits:
Object
  • Object
show all
Includes:
Tags
Defined in:
lib/hir.rb

Defined Under Namespace

Modules: Tags

Constant Summary collapse

VERSION =
"1.1.1"

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Tags

add_tag, add_tags, #comment, #doctype!, #none, #sir

Constructor Details

#initializeHIR

Returns a new instance of HIR.



76
77
78
# File 'lib/hir.rb', line 76

def initialize
  @tags = []
end

Class Method Details

.to_html(&content) ⇒ Object



68
69
70
71
72
# File 'lib/hir.rb', line 68

def self.to_html(&content)
  html_page = HIR.new
  html_page.instance_eval(&content)
  html_page.to_s
end

Instance Method Details

#to_sObject



80
81
82
# File 'lib/hir.rb', line 80

def to_s
  @tags.join
end