Class: ImagePage
- Inherits:
-
UploadPage
- Object
- Page
- UploadPage
- ImagePage
- Defined in:
- lib/soks-view.rb,
lib/soks-model.rb
Instance Attribute Summary
Attributes inherited from Page
#content, #content_lock, #inserted_into, #links_from, #links_lock, #links_to, #name, #revisions
Instance Method Summary collapse
Methods inherited from Page
#<=>, #created_on, #deleted?, empty, #empty?, #initialize, #is_inserted_into, #method_missing, #revise, #revision, #rollback, #score
Constructor Details
This class inherits a constructor from Page
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Page
Instance Method Details
#name_for_index ⇒ Object
122 |
# File 'lib/soks-model.rb', line 122 def name_for_index; @name[10..-1].strip.downcase end |
#textile(view) ⇒ Object
10 11 12 13 14 |
# File 'lib/soks-view.rb', line 10 def textile( view ) return "[[#{$MESSAGES[:Create]} #{name} => /edit/#{name} ]]" if empty? return content if deleted? "!#{view.file2(content)}!:#{view.url(name)}" end |