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.



469
470
471
# File 'lib/mindwords.rb', line 469

def initialize()

end

Instance Method Details

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

can be used for main entries or a words list



476
477
478
479
480
481
482
483
484
485
486
# File 'lib/mindwords.rb', line 476

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