Class: Web::Narflates::Data

Inherits:
Object show all
Defined in:
lib/web/template.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject (readonly)

Returns the value of attribute data.



370
371
372
# File 'lib/web/template.rb', line 370

def data
  @data
end

Instance Method Details



375
376
377
# File 'lib/web/template.rb', line 375

def print (globals,io) 
	io << @data if @data != nil
end