/usr/share/doc/ruby-innate/examples/link.rb is in ruby-innate 2013.02.21-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | require 'innate'
class Linking
Innate.node '/'
def index
"Index links to " + a('Help?', :help)
end
def help
"Help links to " + Different.a('A Different Node', :another)
end
end
class Different
Innate.node '/link_to'
def another
a('Another links even deeper', 'and/deeper')
end
def and__deeper
Linking.a('Back to Linking Node', :index)
end
end
Innate.start
|