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.



518
519
520
# File 'lib/mindwords.rb', line 518

def initialize()

end

Instance Method Details

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

can be used for main entries or a words list



525
526
527
528
529
530
531
532
533
534
535
# File 'lib/mindwords.rb', line 525

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

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