Class: Wesc::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/wesc.rb

Overview

The result of a one-shot build: the rendered html plus the bundled css/js. The CSS/JS are populated when requested via ‘outcss`/`outjs` (an empty string keeps them in memory only; a path also writes the file) and are `nil` otherwise.

Instance Attribute Summary collapse

Instance Attribute Details

#cssObject

Returns the value of attribute css

Returns:

  • (Object)

    the current value of css



31
32
33
# File 'lib/wesc.rb', line 31

def css
  @css
end

#htmlObject

Returns the value of attribute html

Returns:

  • (Object)

    the current value of html



31
32
33
# File 'lib/wesc.rb', line 31

def html
  @html
end

#jsObject

Returns the value of attribute js

Returns:

  • (Object)

    the current value of js



31
32
33
# File 'lib/wesc.rb', line 31

def js
  @js
end