Class: RBS::TypeName

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

Instance Method Summary collapse

Instance Method Details

#format(q) ⇒ Object



5
6
7
# File 'lib/syntax_tree/rbs/types.rb', line 5

def format(q)
  q.text(to_s)
end

#pretty_print(q) ⇒ Object



9
10
11
12
13
14
# File 'lib/syntax_tree/rbs/types.rb', line 9

def pretty_print(q)
  q.group(2, "(type-name", ")") do
    q.breakable
    q.pp(to_s)
  end
end