Sha256: 9005861f1fbb5a18df7f5a81e933911c84ca16d347a30a910c11188042c6941a

Contents?: true

Size: 433 Bytes

Versions: 5

Compression:

Stored size: 433 Bytes

Contents

module YARD
  module Generators::Helpers
    module FilterHelper
      def is_method?(object)
        object.type == :method
      end

      def is_namespace?(object)
        object.is_a?(CodeObjects::NamespaceObject)
      end
      
      def is_class?(object)
        object.is_a?(CodeObjects::ClassObject)
      end
      
      def is_module?(object)
        object.is_a?(CodeObjects::ModuleObject)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yard-0.2.3.5 lib/yard/generators/helpers/filter_helper.rb
yard-0.2.3.4 lib/yard/generators/helpers/filter_helper.rb
yard-0.2.3.2 lib/yard/generators/helpers/filter_helper.rb
yard-0.2.3.3 lib/yard/generators/helpers/filter_helper.rb
yard-0.2.3 lib/yard/generators/helpers/filter_helper.rb