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.



563
564
565
# File 'lib/mindwords.rb', line 563

def initialize()

end

Instance Method Details

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

can be used for main entries or a words list



570
571
572
573
574
575
576
577
578
579
580
# File 'lib/mindwords.rb', line 570

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