Class: Web::Narflates::Data
Overview
:nodoc:
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data) ⇒ Data
constructor
A new instance of Data.
- #print(globals, io) ⇒ Object
Constructor Details
#initialize(data) ⇒ Data
Returns a new instance of Data.
371 372 373 |
# File 'lib/web/template.rb', line 371 def initialize (data) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
370 371 372 |
# File 'lib/web/template.rb', line 370 def data @data end |
Instance Method Details
#print(globals, io) ⇒ Object
375 376 377 |
# File 'lib/web/template.rb', line 375 def print (globals,io) io << @data if @data != nil end |