Sha256: 0714ea61a43b71c01bac07d928955ddb1932a74a23712c973045f3ba7039d41f

Contents?: true

Size: 486 Bytes

Versions: 17

Compression:

Stored size: 486 Bytes

Contents

module Inch
  module Language
    module JavaScript
      module CodeObject
        # Proxy class for modules
        class ModuleObject < Base
          MANY_CHILDREN_THRESHOLD = 20
          def has_many_children?
            children.size > MANY_CHILDREN_THRESHOLD
          end

          def has_methods?
            children.any?(&:method?)
          end

          def pure_namespace?
            children.all?(&:namespace?)
          end
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
inch-0.9.0.rc1 lib/inch/language/javascript/code_object/module_object.rb
inch-0.8.0 lib/inch/language/javascript/code_object/module_object.rb
inch-0.8.0.rc2 lib/inch/language/javascript/code_object/module_object.rb
inch-0.8.0.rc1 lib/inch/language/javascript/code_object/module_object.rb
inch-0.7.1 lib/inch/language/javascript/code_object/module_object.rb
inch-0.7.0 lib/inch/language/javascript/code_object/module_object.rb
inch-0.6.4 lib/inch/language/javascript/code_object/module_object.rb
inch-0.6.3 lib/inch/language/javascript/code_object/module_object.rb
inch-0.6.2 lib/inch/language/javascript/code_object/module_object.rb
inch-0.6.1 lib/inch/language/javascript/code_object/module_object.rb
inch-0.6.0 lib/inch/language/javascript/code_object/module_object.rb
inch-0.6.0.rc6 lib/inch/language/javascript/code_object/module_object.rb
inch-0.6.0.rc5 lib/inch/language/javascript/code_object/module_object.rb
inch-0.6.0.rc4 lib/inch/language/javascript/code_object/module_object.rb
inch-0.6.0.rc3 lib/inch/language/javascript/code_object/module_object.rb
inch-0.6.0.rc2 lib/inch/language/javascript/code_object/module_object.rb
inch-0.6.0.rc1 lib/inch/language/javascript/code_object/module_object.rb