Sha256: 99dcc12edf4f05b9e05c75e5a3e862a5f8fdb094ad896367c4c460247c1d32e5

Contents?: true

Size: 548 Bytes

Versions: 1

Compression:

Stored size: 548 Bytes

Contents

module WikiModel
  class Instance
    def initialize(app)
      @app=app
    end

    def getPage(name)
      Page.new(@app,name)
    end
  end

  class Page
    def initialize(app,name)
      @app=app
      @name=name
    end
    def content
      config=@app.retrieveConfig
      fs=@app.getApp(:localFileStore)

      data=config["wiki"][@app.instanceName][@name].content
    end
    def content=(data)
      config=@app.retrieveConfig
      fs=@app.getApp(:localFileStore)

      config["wiki"][@app.instanceName][@name]=data
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
appswarm-0.0.1 apps/wiki/model/page.rb