Sha256: 11aa0d419436dd86ef6545d80f2fbe77d3ae7fc5c3381b7b8a85644c761fc86e

Contents?: true

Size: 329 Bytes

Versions: 126

Compression:

Stored size: 329 Bytes

Contents

# frozen_string_literal: true

require 'active_support/core_ext/string/inflections'
require 'eac_ruby_utils/templates/searcher'

class Object
  class << self
    def template
      @template ||= ::EacRubyUtils::Templates::Searcher.default.template(name.underscore)
    end
  end

  def template
    self.class.template
  end
end

Version data entries

126 entries across 126 versions & 3 rubygems

Version Path
avm-tools-0.86.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/template.rb
avm-tools-0.85.1 vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/template.rb
eac_ruby_utils-0.56.2 lib/eac_ruby_utils/patches/object/template.rb
avm-tools-0.85.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/template.rb
eac_ruby_utils-0.56.1 lib/eac_ruby_utils/patches/object/template.rb
ehbrs-tools-0.16.5 vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/template.rb
avm-tools-0.84.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/template.rb
eac_ruby_utils-0.56.0 lib/eac_ruby_utils/patches/object/template.rb
avm-tools-0.83.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/template.rb
ehbrs-tools-0.16.4 vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/template.rb
avm-tools-0.82.1 vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/template.rb
avm-tools-0.82.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/template.rb
avm-tools-0.81.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/template.rb
ehbrs-tools-0.16.3 vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/template.rb
eac_ruby_utils-0.55.0 lib/eac_ruby_utils/patches/object/template.rb
avm-tools-0.80.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/template.rb
avm-tools-0.79.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/template.rb
avm-tools-0.78.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/template.rb
ehbrs-tools-0.16.2 vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/template.rb
eac_ruby_utils-0.54.0 lib/eac_ruby_utils/patches/object/template.rb