Class: RBS::Types::Interface

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

Instance Method Summary collapse

Instance Method Details

#format(q) ⇒ Object



105
106
107
# File 'lib/syntax_tree/rbs/types.rb', line 105

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

#pretty_print(q) ⇒ Object



109
110
111
112
113
# File 'lib/syntax_tree/rbs/types.rb', line 109

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