Sha256: 26450ed271c04c1cf14d05d3c5dfe77767cabd7e4d2fffc01f97f441f9519ef0

Contents?: true

Size: 406 Bytes

Versions: 34

Compression:

Stored size: 406 Bytes

Contents

module Inch
  module Language
    module Ruby
      module Evaluation
        module Role
          # @abstract
          class Base < Inch::Evaluation::Role
            # Returns the type of the +object+ that is being evaluated.
            def object_type
              object.class.to_s.split('::').last.gsub(/Object$/, '').downcase
            end
          end
        end
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
inch-0.5.7 lib/inch/language/ruby/roles/base.rb
inch-0.5.6 lib/inch/language/ruby/roles/base.rb
inch-0.5.5 lib/inch/language/ruby/roles/base.rb
inch-0.5.4 lib/inch/language/ruby/roles/base.rb
inch-0.5.3 lib/inch/language/ruby/roles/base.rb
inch-0.5.2 lib/inch/language/ruby/roles/base.rb
inch-0.5.1 lib/inch/language/ruby/roles/base.rb
inch-0.5.0 lib/inch/language/ruby/roles/base.rb
inch-0.5.0.rc11 lib/inch/language/ruby/roles/base.rb
inch-0.5.0.rc10 lib/inch/language/ruby/roles/base.rb
inch-0.5.0.rc9 lib/inch/language/ruby/roles/base.rb
inch-0.5.0.rc8 lib/inch/language/ruby/roles/base.rb
inch-0.5.0.rc7 lib/inch/language/ruby/roles/base.rb
inch-0.5.0.rc6 lib/inch/language/ruby/roles/base.rb