nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
examples: annotate examples
[nit.git]
/
lib
/
pnacl
/
examples
/
converter
/
converter.nit
diff --git
a/lib/pnacl/examples/converter/converter.nit
b/lib/pnacl/examples/converter/converter.nit
index
907aaa3
..
cda360e
100644
(file)
--- a/
lib/pnacl/examples/converter/converter.nit
+++ b/
lib/pnacl/examples/converter/converter.nit
@@
-21,14
+21,13
@@
# Creates a converter and initializes it
# Finally checks for dictionaries
# Creates a converter and initializes it
# Finally checks for dictionaries
-import pnacl
+import pnacl is example
class Converter
super PnaclApp
# We have to redefine the method to do what we want when receiving a dictionary from JS
class Converter
super PnaclApp
# We have to redefine the method to do what we want when receiving a dictionary from JS
- redef fun handle_dictionary(dictionary: PepperDictionary)
- do
+ redef fun handle_dictionary(dictionary) do
# Getting values from the dictionary
var from = dictionary["from"]
var to = dictionary["to"]
# Getting values from the dictionary
var from = dictionary["from"]
var to = dictionary["to"]