Class Hobix::Facets::WikiEdit
In: lib/hobix/bixwik.rb
Parent: BaseFacet

Methods

get   new  

Public Class methods

[Source]

     # File lib/hobix/bixwik.rb, line 147
147:     def initialize( weblog, defaults = {} )
148:         @weblog = weblog
149:     end

Public Instance methods

[Source]

     # File lib/hobix/bixwik.rb, line 150
150:     def get app
151:         if app.respond_to? :action_uri
152:             ns, method_id = app.action_uri.split( '/', 2 )
153:             return false unless ns == "edit"
154: 
155:             # Display publisher page
156:             app.content_type = 'text/html'
157:             app.puts ::ERB.new( erb_src, nil, nil, "_bixwik" ).result( binding )
158:             return true
159:         end
160:     end

[Validate]