DecodeSourceDecodeLanguageRubyAttribute

class Attribute

A Ruby-specific attribute.

Definitions

def short_form

The short form of the attribute. e.g. attr :value.

Implementation

def short_form
	case @node.type
	when :block
		"#{@name} { ... }"
	else
		@node.location.expression.source
	end
end