Module: DTK::DSL::Template::Parsing::Mixin
- Included in:
- DTK::DSL::Template
- Defined in:
- lib/dsl/template/parsing/mixin.rb
Instance Attribute Summary collapse
-
#file_obj ⇒ Object
readonly
Returns the value of attribute file_obj.
-
#parent_key ⇒ Object
readonly
Returns the value of attribute parent_key.
Instance Method Summary collapse
- #parse ⇒ Object
-
#parser_output_type ⇒ Object
The method parser_output_type can be set on concrete class; it wil be set if input and output types are different.
-
#parsing_error(*args) ⇒ Object
args can have form (:ParsingErrorName,*parsing_error_params) or (*parsing_error_params).
Instance Attribute Details
#file_obj ⇒ Object (readonly)
Returns the value of attribute file_obj.
28 29 30 |
# File 'lib/dsl/template/parsing/mixin.rb', line 28 def file_obj @file_obj end |
#parent_key ⇒ Object (readonly)
Returns the value of attribute parent_key.
28 29 30 |
# File 'lib/dsl/template/parsing/mixin.rb', line 28 def parent_key @parent_key end |
Instance Method Details
#parse ⇒ Object
47 48 49 50 |
# File 'lib/dsl/template/parsing/mixin.rb', line 47 def parse parse! @output end |
#parser_output_type ⇒ Object
The method parser_output_type can be set on concrete class; it wil be set if input and output types are different
53 54 55 |
# File 'lib/dsl/template/parsing/mixin.rb', line 53 def parser_output_type nil end |
#parsing_error(*args) ⇒ Object
args can have form
(:ParsingErrorName,*parsing_error_params) or
(*parsing_error_params)
60 61 62 |
# File 'lib/dsl/template/parsing/mixin.rb', line 60 def parsing_error(*args) parsing_error_with_opts(args) end |