Class: Synthra::Parser::AST::ModifierNode
- Defined in:
- lib/synthra/parser/ast.rb
Overview
Modifier node for field modifiers
Represents a modifier applied to a field (unique, range, etc.).
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name:, value:, line: nil) ⇒ ModifierNode
constructor
Create a new ModifierNode.
Constructor Details
#initialize(name:, value:, line: nil) ⇒ ModifierNode
Create a new ModifierNode
562 563 564 565 566 |
# File 'lib/synthra/parser/ast.rb', line 562 def initialize(name:, value:, line: nil) super(line: line) @name = name.to_sym @value = value end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
547 548 549 |
# File 'lib/synthra/parser/ast.rb', line 547 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
553 554 555 |
# File 'lib/synthra/parser/ast.rb', line 553 def value @value end |