Class: RBI::Group
- Inherits:
-
Tree
- Object
- Node
- NodeWithComments
- Tree
- RBI::Group
- Extended by:
- T::Sig
- Defined in:
- lib/rbi/printer.rb,
lib/rbi/rewriters/group_nodes.rb
Defined Under Namespace
Classes: Kind
Instance Attribute Summary collapse
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
Attributes inherited from Tree
Attributes inherited from NodeWithComments
Attributes inherited from Node
Instance Method Summary collapse
- #accept_printer(v) ⇒ Object
-
#initialize(kind) ⇒ Group
constructor
A new instance of Group.
Methods inherited from Tree
#<<, #add_sig_templates!, #annotate!, #deannotate!, #empty?, #group_nodes!, #index, #merge, #nest_non_public_methods!, #nest_singleton_methods!, #oneline?, #sort_nodes!
Methods inherited from NodeWithComments
#annotations, #merge_with, #oneline?
Methods inherited from Node
#compatible_with?, #detach, #group_kind, #merge_with, #oneline?, #parent_conflict_tree, #parent_scope, #print, #print_blank_line_before, #replace, #string
Constructor Details
#initialize(kind) ⇒ Group
Returns a new instance of Group.
89 90 91 92 |
# File 'lib/rbi/rewriters/group_nodes.rb', line 89 def initialize(kind) super() @kind = kind end |
Instance Attribute Details
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
86 87 88 |
# File 'lib/rbi/rewriters/group_nodes.rb', line 86 def kind @kind end |
Instance Method Details
#accept_printer(v) ⇒ Object
770 771 772 773 |
# File 'lib/rbi/printer.rb', line 770 def accept_printer(v) v.printn unless v.previous_node.nil? v.visit_all(nodes) end |