Class: Stark::Parser::AST::Field
- Defined in:
- lib/stark/ast.rb,
lib/stark/raw_parser.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #accept(obj) ⇒ Object
-
#initialize(index, type, name, value, options) ⇒ Field
constructor
A new instance of Field.
Constructor Details
#initialize(index, type, name, value, options) ⇒ Field
Returns a new instance of Field.
417 418 419 420 421 422 423 |
# File 'lib/stark/raw_parser.rb', line 417 def initialize(index, type, name, value, ) @index = index @type = type @name = name @value = value @options = end |
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index.
424 425 426 |
# File 'lib/stark/raw_parser.rb', line 424 def index @index end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
426 427 428 |
# File 'lib/stark/raw_parser.rb', line 426 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
428 429 430 |
# File 'lib/stark/raw_parser.rb', line 428 def @options end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
425 426 427 |
# File 'lib/stark/raw_parser.rb', line 425 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
427 428 429 |
# File 'lib/stark/raw_parser.rb', line 427 def value @value end |
Instance Method Details
#accept(obj) ⇒ Object
24 25 26 |
# File 'lib/stark/ast.rb', line 24 def accept(obj) obj.process_field self end |