Class: RBS::Types::ClassInstance

Inherits:
Object
  • Object
show all
Defined in:
lib/syntax_tree/rbs/types.rb

Instance Method Summary collapse

Instance Method Details

#format(q) ⇒ Object



45
46
47
# File 'lib/syntax_tree/rbs/types.rb', line 45

def format(q)
  SyntaxTree::RBS::NameAndArgs.new(self).format(q)
end

#pretty_print(q) ⇒ Object



49
50
51
52
53
# File 'lib/syntax_tree/rbs/types.rb', line 49

def pretty_print(q)
  q.group(2, "(class-instance", ")") do
    q.pp(SyntaxTree::RBS::NameAndArgs.new(self))
  end
end