source: de.wigbels.ruby/templates/shellscript.rb @ a5924d3

Last change on this file since a5924d3 was a5924d3, checked in by njw <njw@…>, 15 years ago

My ruby standard template

  • Property mode set to 100644
File size: 669 bytes
Line 
1#!/usr/bin/ruby
2#
3# Author: Norbert Wigbels - foobla.wigbels.de/uber-foobla
4#
5# Info about...
6
7
8#------------------------------------------
9# Tainted mode 0-4
10$SAFE=0
11
12
13#------------------------------------------
14require 'logger'
15
16
17#------------------------------------------
18class FooApp < Logger::Application
19  def initialize(application_name)
20    super(application_name) # Name of the application.
21  end
22
23  def run
24    puts "Filename: "+__FILE__.to_s
25    puts "Linenumber: "+__LINE__.to_s
26    #log(WARN, 'warning',  'mymethod' )
27    #@log.error('my_method2') { 'Error!' }
28  end
29
30end
31
32
33#------------------------------------------
34status = FooApp.new("FooApp").start
35
Note: See TracBrowser for help on using the repository browser.