Sha256: 50cc093bca72257672421decddf5655edefbcbc85e0f4986678b3497cf910c27

Contents?: true

Size: 695 Bytes

Versions: 23

Compression:

Stored size: 695 Bytes

Contents

module WebIDL
  module Ast
    class Attribute < Node

      attr_reader :type, :name, :getraises, :setraises
      attr_accessor :extended_attributes, :stringifier

      def initialize(parent, type, name, opts = {})
        super(parent)

        @type                = type
        @name                = name
        @readonly            = !!opts[:readonly]
        @setraises           = opts[:setraises] || []
        @getraises           = opts[:getraises] || []
        @extended_attributes = opts[:extended_attributes] || []
      end

      def readonly?
        @readonly
      end

      def stringifier?
        !!@stringifier
      end

    end # Attribute
  end # Ast
end # WebIDL

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
webidl-0.2.2 lib/webidl/ast/attribute.rb
webidl-0.2.1 lib/webidl/ast/attribute.rb
webidl-0.1.10 lib/webidl/ast/attribute.rb
webidl-0.2.0 lib/webidl/ast/attribute.rb
webidl-0.1.9 lib/webidl/ast/attribute.rb
webidl-0.1.8 lib/webidl/ast/attribute.rb
webidl-0.1.7 lib/webidl/ast/attribute.rb
webidl-0.1.6 lib/webidl/ast/attribute.rb
webidl-0.1.5 lib/webidl/ast/attribute.rb
webidl-0.1.4 lib/webidl/ast/attribute.rb
webidl-0.1.3 lib/webidl/ast/attribute.rb
webidl-0.1.2 lib/webidl/ast/attribute.rb
webidl-0.1.1 lib/webidl/ast/attribute.rb
webidl-0.1.0 lib/webidl/ast/attribute.rb
webidl-0.0.9 lib/webidl/ast/attribute.rb
webidl-0.0.8 lib/webidl/ast/attribute.rb
webidl-0.0.7 lib/webidl/ast/attribute.rb
webidl-0.0.6 lib/webidl/ast/attribute.rb
webidl-0.0.5 lib/webidl/ast/attribute.rb
webidl-0.0.4 lib/webidl/ast/attribute.rb