Class: Html::Flag

Inherits:
Base show all
Defined in:
lib/html/base.rb

Overview

HTML flags are those that don’t have a closing tag, e.g. <img href=“”>

Direct Known Subclasses

Break, Image

Instance Method Summary collapse

Methods inherited from Base

#attributes, #initialize, #processed_output, tag, #tag

Constructor Details

This class inherits a constructor from Html::Base

Instance Method Details

#<<(other) ⇒ Object



109
110
111
# File 'lib/html/base.rb', line 109

def << (other)
  self.to_s + other
end

#to_sObject



105
106
107
# File 'lib/html/base.rb', line 105

def to_s
  "<#{tag}#{attributes}>"
end