lib/docrb/lib/docrb/ruby_parser.rb
# Parses a module modifier. Currently this only handles a `module_function`
# keyword.
#
# _node   - Unused.
# parent  - The parent object of this modifier
# _target - Unused.
# name    - Name of the modifier being invoked
# args    - Arguments passed to the modifier method
Parses a module modifier. Currently this only handles a `module_function`
keyword.

_node   - Unused.
parent  - The parent object of this modifier
_target - Unused.
name    - Name of the modifier being invoked
args    - Arguments passed to the modifier method
Parses a module modifier . Currently this only handles a ` module_function ` keyword . _node - Unused . parent - The parent object of this modifier _target - Unused . name - Name of the modifier being invoked args - Arguments passed to the modifier method
def parse_module_modifier(_node, parent, _target, name, args)
      return if args.empty? 
      args.each do |a|
        handle_module_function(parent, name, a)
      end
    end
def parse_module_modifier ( _node , parent , _target , name , args ) return if args . empty? args . each do | a | handle_module_function ( parent , name , a ) end end
Parses a module modifier.
Parses a module modifier .
# FIXME: `module_function` does a lot: #   Creates module functions for the named methods. These functions may #   be called with the module as a receiver, and also become available as #   instance methods to classes that mix in the module. Module functions #   are copies of the original, and so may be changed independently. The #   instance-method versions are made private. If used with no arguments, #   subsequently defined methods become module functions. String arguments #   are converted to symbols. # ...but we will only treat it as defs, for now. # So when nothing is provided, nothing is done. # That's a poor decision by itself, but we may # address this in the future.
_node
parent
_target
name
args