Sha256: 5022c034bd55c29ed3df49770e6b35eb9b26af6e2e5f1e345d5c4fd0bb974173
Contents?: true
Size: 948 Bytes
Versions: 5
Compression:
Stored size: 948 Bytes
Contents
module WebIDL module Ast class Operation < Node attr_reader :type, :name, :args, :specials, :raises attr_accessor :stringifier def initialize(parent, type, opts = {}) @parent = parent @type = type @name = opts[:name] || '' @static = opts[:static] @specials = opts[:specials] || [] @args = opts[:args] || [] @raises = opts[:raises] || [] end def stringifier? !!@stringifier end def getter? @specials.include? 'getter' end def setter? @specials.include? 'setter' end def creator? @specials.include? 'creator' end def deleter? @specials.include? 'deleter' end def legacycaller? @specials.include? 'legacycaller' end def static? !!@static end end # Operation end # Ast end # WebIDL
Version data entries
5 entries across 5 versions & 1 rubygems