Class: Yoda::AST::NameVnode
Instance Attribute Summary collapse
- #name ⇒ Symbol readonly
Attributes inherited from Vnode
Instance Method Summary collapse
- #children ⇒ Array<Node>?
-
#initialize(name, **kwargs) ⇒ NameVnode
constructor
A new instance of NameVnode.
- #inspect_content ⇒ Object
- #type ⇒ Symbol
Methods inherited from Vnode
#constant?, #empty?, #identifier, #inspect, #nesting, #present?, #try, #wrap_child
Methods included from Vnode::CommentPositional
#comments_by_vnode, #positionally_nearest_comment, #positionally_nearest_commenting_node
Methods included from Vnode::Positional
#location, #positionally_include?, #positionally_nearest_child, #range, #source_map
Methods included from Vnode::CommentAssociation
#all_nodes_lazy, #associate_comments, #comments, #wrapping?
Methods included from Traversable
#query, #query_all, #query_ancestor, #query_ancestors
Methods included from MethodTraversable
#calc_current_location_method, #including_method, #method?
Methods included from NamespaceTraversable
#calc_current_location_namespace, #full_name, #namespace, #namespace?, #namespace_path, #root?
Constructor Details
#initialize(name, **kwargs) ⇒ NameVnode
Returns a new instance of NameVnode.
13 14 15 16 |
# File 'lib/yoda/ast/name_vnode.rb', line 13 def initialize(name, **kwargs) @name = name super(**kwargs) end |
Instance Attribute Details
#name ⇒ Symbol (readonly)
10 11 12 |
# File 'lib/yoda/ast/name_vnode.rb', line 10 def name @name end |
Instance Method Details
#inspect_content ⇒ Object
23 24 25 |
# File 'lib/yoda/ast/name_vnode.rb', line 23 def inspect_content name end |
#type ⇒ Symbol
5 6 7 |
# File 'lib/yoda/ast/name_vnode.rb', line 5 def type :name end |