Class: Hermeneutics::Text

Inherits:
Object
  • Object
show all
Defined in:
lib/hermeneutics/cgi.rb

Constant Summary collapse

CONTENT_TYPE =
"text/plain"

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cgiObject

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