Class: Fig::Statement::SyntheticRawText
- Inherits:
-
Fig::Statement
- Object
- Fig::Statement
- Fig::Statement::SyntheticRawText
- Defined in:
- lib/fig/statement/synthetic_raw_text.rb
Overview
Some raw text that we want emitted as part of unparsing.
Constant Summary
Constants inherited from Fig::Statement
ENVIRONMENT_VARIABLE_NAME_REGEX
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Attributes inherited from Fig::Statement
#column, #line, #source_description
Instance Method Summary collapse
- #deparse_as_version(deparser) ⇒ Object
-
#initialize(line_column, source_description, text) ⇒ SyntheticRawText
constructor
A new instance of SyntheticRawText.
- #minimum_grammar_for_emitting_input ⇒ Object
- #minimum_grammar_for_publishing ⇒ Object
- #statement_type ⇒ Object
Methods inherited from Fig::Statement
#is_asset?, #is_environment_variable?, position_description, #position_string, #urls, #walk_statements
Constructor Details
#initialize(line_column, source_description, text) ⇒ SyntheticRawText
Returns a new instance of SyntheticRawText.
9 10 11 12 13 |
# File 'lib/fig/statement/synthetic_raw_text.rb', line 9 def initialize(line_column, source_description, text) super(line_column, source_description) @text = text end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
7 8 9 |
# File 'lib/fig/statement/synthetic_raw_text.rb', line 7 def text @text end |
Instance Method Details
#deparse_as_version(deparser) ⇒ Object
19 20 21 |
# File 'lib/fig/statement/synthetic_raw_text.rb', line 19 def deparse_as_version(deparser) return deparser.synthetic_raw_text(self) end |
#minimum_grammar_for_emitting_input ⇒ Object
23 24 25 |
# File 'lib/fig/statement/synthetic_raw_text.rb', line 23 def minimum_grammar_for_emitting_input() return [0] end |
#minimum_grammar_for_publishing ⇒ Object
27 28 29 |
# File 'lib/fig/statement/synthetic_raw_text.rb', line 27 def minimum_grammar_for_publishing() return [0] end |
#statement_type ⇒ Object
15 16 17 |
# File 'lib/fig/statement/synthetic_raw_text.rb', line 15 def statement_type() return nil end |