class Decode::Language::Ruby::Singleton

A Ruby-specific singleton class.

Public Instance Methods

container?() click to toggle source

A singleton class is a container for other definitions. @returns [Boolean]

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

The long form is the same as the short form.

Alias for: short_form
nested?() click to toggle source

Typically, a singleton class does not contain other definitions. @returns [Boolean]

# File lib/decode/language/ruby/class.rb, line 72
def nested?
        false
end
short_form() click to toggle source

The short form of the class. e.g. `class << (self)`.

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