Sha256: 51ded4dc3c103b443e5d265400dce15bcfe86de65f2517f90638a7b17882a200

Contents?: true

Size: 293 Bytes

Versions: 14

Compression:

Stored size: 293 Bytes

Contents

require "jsduck/tag/boolean_tag"

module JsDuck::Tag
  class Singleton < BooleanTag
    def initialize
      @pattern = "singleton"
      @ext_define_pattern = "singleton"
      super
    end

    def parse_ext_define(cls, ast)
      cls[:singleton] = (ast.to_value == true)
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
jsduck-5.3.4 lib/jsduck/tag/singleton.rb
jsduck-5.3.3 lib/jsduck/tag/singleton.rb
jsduck-5.3.2 lib/jsduck/tag/singleton.rb
jsduck-5.3.1 lib/jsduck/tag/singleton.rb
jsduck-5.3.0 lib/jsduck/tag/singleton.rb
jsduck-5.2.0 lib/jsduck/tag/singleton.rb
jsduck-5.1.0 lib/jsduck/tag/singleton.rb
jsduck-5.0.1 lib/jsduck/tag/singleton.rb
jsduck-5.0.0 lib/jsduck/tag/singleton.rb
jsduck-5.0.0.beta5 lib/jsduck/tag/singleton.rb
jsduck-5.0.0.beta4 lib/jsduck/tag/singleton.rb
jsduck-5.0.0.beta3 lib/jsduck/tag/singleton.rb
jsduck-5.0.0.beta2 lib/jsduck/tag/singleton.rb
jsduck-5.0.0.beta01 lib/jsduck/tag/singleton.rb