Class: RBS::Types::Variable
- Inherits:
-
Object
- Object
- RBS::Types::Variable
- Defined in:
- lib/syntax_tree/rbs/types.rb
Instance Method Summary collapse
Instance Method Details
#format(q) ⇒ Object
280 281 282 |
# File 'lib/syntax_tree/rbs/types.rb', line 280 def format(q) q.text(name) end |
#pretty_print(q) ⇒ Object
284 285 286 287 288 289 290 |
# File 'lib/syntax_tree/rbs/types.rb', line 284 def pretty_print(q) q.group(2, "(variable", ")") do q.breakable q.text("name=") q.pp(name) end end |