Class: Example
- Inherits:
-
Rubyang::Component::Base
- Object
- Rubyang::Component::Base
- Example
- Defined in:
- lib/rubyang/server/example.rb,
lib/rubyang/component/example.rb
Instance Method Summary collapse
Methods inherited from Rubyang::Component::Base
Constructor Details
This class inherits a constructor from Rubyang::Component::Base
Instance Method Details
#run ⇒ Object
7 8 9 10 11 12 |
# File 'lib/rubyang/component/example.rb', line 7 def run config = @db.configure File.open( '/tmp/rubyang_component_example.txt', 'w' ){ |fo| fo.puts config.to_xml( pretty: true ) } end |