Class: Natsuzora::AST::Variable
Instance Attribute Summary collapse
-
#modifier ⇒ Object
readonly
Returns the value of attribute modifier.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(path, modifier: nil) ⇒ Variable
constructor
modifier: nil (default), :nullable (?), :required (!).
Constructor Details
#initialize(path, modifier: nil) ⇒ Variable
modifier: nil (default), :nullable (?), :required (!)
36 37 38 39 40 |
# File 'lib/natsuzora/ast.rb', line 36 def initialize(path, modifier: nil, **) super(**) @path = path @modifier = modifier end |
Instance Attribute Details
#modifier ⇒ Object (readonly)
Returns the value of attribute modifier.
33 34 35 |
# File 'lib/natsuzora/ast.rb', line 33 def modifier @modifier end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
33 34 35 |
# File 'lib/natsuzora/ast.rb', line 33 def path @path end |