Class: OpenHAB::YARD::Tags::ConstantDirective

Inherits:
YARD::Tags::Directive
  • Object
show all
Defined in:
lib/openhab/yard/tags/constant_directive.rb

Instance Method Summary collapse

Instance Method Details

#callObject



7
8
9
10
11
12
13
14
# File 'lib/openhab/yard/tags/constant_directive.rb', line 7

def call
  return unless handler

  ::YARD::CodeObjects::ConstantObject.new(handler.namespace, tag.name.to_sym) do |obj|
    obj.value = ""
    obj.docstring = tag.text
  end
end