class Decode::Language::Ruby::Call
A Ruby-specific block which might carry other definitions.
Public Instance Methods
container?()
click to toggle source
A block can sometimes be a container for other definitions.
# File lib/decode/language/ruby/call.rb, line 29 def container? false end
long_form()
click to toggle source
The long form of the class. e.g. `foo(:bar)`.
# File lib/decode/language/ruby/call.rb, line 41 def long_form if @node.location.line == @node.location.last_line @node.location.expression.source else self.short_form end end
qualified_form()
click to toggle source
The fully qualified name of the block. e.g. `class ::Barnyard::Dog`.
# File lib/decode/language/ruby/call.rb, line 51 def qualified_form self.qualified_name end
short_form()
click to toggle source
The short form of the class. e.g. `foo`.
# File lib/decode/language/ruby/call.rb, line 35 def short_form @name.to_s end