Class: Example

Inherits:
Rubyang::Component::Base show all
Defined in:
lib/rubyang/server/example.rb,
lib/rubyang/component/example.rb

Instance Method Summary collapse

Methods inherited from Rubyang::Component::Base

#finish, #initialize

Constructor Details

This class inherits a constructor from Rubyang::Component::Base

Instance Method Details

#runObject



6
7
8
9
10
11
# File 'lib/rubyang/component/example.rb', line 6

def run
	config = @db.configure
	File.open( '/tmp/rubyang_component_example.txt', 'w' ){ |fo|
		fo.puts config.to_xml( pretty: true )
	}
end