lib/webidl/ast/operation.rb in webidl-0.0.8 vs lib/webidl/ast/operation.rb in webidl-0.0.9

- old
+ new

@@ -7,10 +7,11 @@ 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 @@ -34,9 +35,13 @@ @specials.include? 'deleter' end def caller? @specials.include? 'caller' + end + + def static? + !!@static end end # Operation end # Ast end # WebIDL \ No newline at end of file