/jEdit/tags/jedit-4-1-pre5/bsh/commands/object.bsh

# · Unknown · 19 lines · 15 code · 4 blank · 0 comment · 0 complexity · 801e335b17b93b9e0db3f9814159047f MD5 · raw file

  1. /**
  2. Returns a new bsh object which you can use to hold data items.
  3. e.g.
  4. <p>
  5. <pre>
  6. myStuff = object();
  7. myStuff.foo = 42;
  8. myStuff.bar = "blah";
  9. </pre>
  10. @method This object()
  11. */
  12. bsh.help.object = "usage: object()";
  13. object() {
  14. return this;
  15. }