Class: Hermeneutics::Text
- Inherits:
-
Object
- Object
- Hermeneutics::Text
- Defined in:
- lib/hermeneutics/cgi.rb
Constant Summary collapse
- CONTENT_TYPE =
"text/plain"
Instance Attribute Summary collapse
-
#cgi ⇒ Object
Returns the value of attribute cgi.
Instance Method Summary collapse
- #build(*args, **kwargs, &block) ⇒ Object
- #document(*args, **kwargs, &block) ⇒ Object
- #generate(out = nil) ⇒ Object
Instance Attribute Details
#cgi ⇒ Object
Returns the value of attribute cgi.
39 40 41 |
# File 'lib/hermeneutics/cgi.rb', line 39 def cgi @cgi end |
Instance Method Details
#build(*args, **kwargs, &block) ⇒ Object
49 50 |
# File 'lib/hermeneutics/cgi.rb', line 49 def build *args, **kwargs, &block end |
#document(*args, **kwargs, &block) ⇒ Object
46 47 48 |
# File 'lib/hermeneutics/cgi.rb', line 46 def document *args, **kwargs, &block build *args, **kwargs, &block end |
#generate(out = nil) ⇒ Object
40 41 42 43 44 45 |
# File 'lib/hermeneutics/cgi.rb', line 40 def generate out = nil @out = out||$stdout yield ensure @out = nil end |