Module: OpenHAB::YARD::Tags::GroupDirective
- Defined in:
- lib/openhab/yard/tags/group_directive.rb
Instance Method Summary collapse
Instance Method Details
#after_parse ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/openhab/yard/tags/group_directive.rb', line 9 def after_parse return if tag.name.empty? return unless handler object = CodeObjects::GroupObject.new(handler.namespace, tag.name) handler.extra_state.group = object self.parser = parser.class.new(parser.library) parser.state.inside_directive = true parser.parse(tag.text, object, handler) parser.state.inside_directive = false object.docstring = parser.to_docstring # rubocop:disable Lint/UselessSetterCall end |