Class: RBI::Group

Inherits:
Tree show all
Extended by:
T::Sig
Defined in:
lib/rbi/rewriters/group_nodes.rb

Defined Under Namespace

Classes: Kind

Instance Attribute Summary collapse

Attributes inherited from Tree

#nodes

Attributes inherited from NodeWithComments

#comments

Attributes inherited from Node

#loc, #parent_tree

Instance Method Summary collapse

Methods inherited from Tree

#<<, #add_sig_templates!, #annotate!, #deannotate!, #empty?, #filter_versions!, #group_nodes!, #index, #merge, #nest_non_public_methods!, #nest_singleton_methods!, #replace_attributes_with_methods!, #sort_nodes!

Methods inherited from NodeWithComments

#annotations, #merge_with, #version_requirements

Methods inherited from Node

#compatible_with?, #detach, #merge_with, #parent_conflict_tree, #parent_scope, #print, #replace, #satisfies_version?, #string

Constructor Details

#initialize(kind) ⇒ Group

Returns a new instance of Group.



94
95
96
97
# File 'lib/rbi/rewriters/group_nodes.rb', line 94

def initialize(kind)
  super()
  @kind = kind
end

Instance Attribute Details

#kindObject (readonly)

Returns the value of attribute kind.



91
92
93
# File 'lib/rbi/rewriters/group_nodes.rb', line 91

def kind
  @kind
end