Class: MindWordsWidget

Inherits:
Object
  • Object
show all
Defined in:
lib/mindwords.rb

Instance Method Summary collapse

Constructor Details

#initializeMindWordsWidget

Returns a new instance of MindWordsWidget.



423
424
425
# File 'lib/mindwords.rb', line 423

def initialize()

end

Instance Method Details

#input(content: '', action: 'mwupdate', target: 'icontent') ⇒ Object

can be used for main entries or a words list



430
431
432
433
434
435
436
437
438
439
440
# File 'lib/mindwords.rb', line 430

def input(content: '', action: 'mwupdate', target: 'icontent')

<<EOF
<form action='#{action}' method='post' target='#{target}'>
<textarea name='content' cols='30' rows='19'>
#{content}
</textarea>
<input type='submit' value='Submit'/>
</form>
EOF
end