class Decode::Language::Ruby::Module

A Ruby-specific module.

Public Instance Methods

container?() click to toggle source

A module is a container for other definitions.

# File lib/decode/language/ruby/module.rb, line 29
def container?
        true
end
long_form()

The long form is the same as the short form.

Alias for: short_form
nested_name() click to toggle source
# File lib/decode/language/ruby/module.rb, line 33
def nested_name
        "::#{name}"
end
qualified_form() click to toggle source

The fully qualified name of the class. e.g. `module ::Barnyard::Dog`.

# File lib/decode/language/ruby/module.rb, line 48
def qualified_form
        "module #{self.qualified_name}"
end
short_form() click to toggle source

The short form of the module. e.g. `module Barnyard`.

# File lib/decode/language/ruby/module.rb, line 39
def short_form
        "module #{@name}"
end
Also aliased as: long_form