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.



513
514
515
# File 'lib/mindwords.rb', line 513

def initialize()

end

Instance Method Details

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

can be used for main entries or a words list



520
521
522
523
524
525
526
527
528
529
530
# File 'lib/mindwords.rb', line 520

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