Class: RBS::Types::Proc

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

Instance Method Summary collapse

Instance Method Details

#format(q) ⇒ Object



184
185
186
187
# File 'lib/syntax_tree/rbs/types.rb', line 184

def format(q)
  q.text("^")
  SyntaxTree::RBS::MethodSignature.new(self).format(q)
end

#pretty_print(q) ⇒ Object



189
190
191
192
193
# File 'lib/syntax_tree/rbs/types.rb', line 189

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