File: link.rb

package info (click to toggle)
ruby-innate 2013.02.21-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 848 kB
  • ctags: 622
  • sloc: ruby: 4,340; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 399 bytes parent folder | download | duplicates (3)
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