diff options
| author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-26 16:32:18 +0200 | 
|---|---|---|
| committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-26 16:32:18 +0200 | 
| commit | f3835844329e2e5bbc2ae757a7ca11eacb6f1d7f (patch) | |
| tree | f978f54586bd215ea5556b0643f7c9a53330293e /lib | |
| parent | 8a1ea81b56aa8f79017b7ab42bfaaa4f36919f1f (diff) | |
| download | edoors-ruby-f3835844329e2e5bbc2ae757a7ca11eacb6f1d7f.zip edoors-ruby-f3835844329e2e5bbc2ae757a7ca11eacb6f1d7f.tar.gz  | |
Iota: add yard documentation
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/edoors/iota.rb | 24 | 
1 files changed, 20 insertions, 4 deletions
diff --git a/lib/edoors/iota.rb b/lib/edoors/iota.rb index fcf7573..e63aca0 100644 --- a/lib/edoors/iota.rb +++ b/lib/edoors/iota.rb @@ -25,6 +25,14 @@ module Edoors      #      class Iota          # +        # creates a Iota object from the arguments. +        # +        # @param [String] n the name of this Iota +        # @param [Iota] p the parent +        # +        # @see Room#add_iota adds itself to it's parent children list +        # @see Spin#add_to_world adds itself to @spin's world +        #          def initialize n, p              raise Edoors::Exception.new "Iota name #{n} is not valid" if n.include? Edoors::PATH_SEP              @name   = n     # unique in it's room @@ -41,23 +49,31 @@ module Edoors          attr_reader :name, :path, :spin          attr_accessor :viewer, :parent          # +        # override this to initialize your object on system start +        #          def start! -            # override this to initialize your object on system start          end          # +        # override this to initialize your object on system stop +        #          def stop! -            # override this to initialize your object on system stop          end          # +        # override this to save your object state on hibernate +        # #          def hibernate! -            # override this to save your object state on hibernate              {}          end          # +        # override this to restore your object state on resume +        #          def resume! o -            # override this to restore your object state on resume          end          # +        # has to be override, used by user side code +        # +        # @raise NoMethodError +        #          def receive_p p              raise NoMethodError.new "receive_p(p) must be overridden"          end  | 
