DecodeSourceDecodeLanguageRubyCall

class Call

A Ruby-specific block which might carry other definitions.

Definitions

def container?

A block can sometimes be a container for other definitions.

Implementation

def container?
	false
end

def short_form

The short form of the class. e.g. foo.

Implementation

def short_form
	@name.to_s
end

def long_form

The long form of the class. e.g. foo(:bar).

Implementation

def long_form
	if @node.location.line == @node.location.last_line
		@node.location.expression.source
	else
		self.short_form
	end
end

def qualified_form

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

Implementation

def qualified_form
	self.qualified_name
end