Sha256: c85089d737dcae7b50655d8e71a2f0ba4bc048fe0be73fc1274e71f07344265c

Contents?: true

Size: 379 Bytes

Versions: 13

Compression:

Stored size: 379 Bytes

Contents

module Locomotive
  class PluginWithNonStringPath

    include Locomotive::Plugin

    class Pathname
      def initialize(path)
        @path = path
      end

      def to_s
        @path.to_s || ''
      end
    end

    def config_template_file
      Pathname.new(File.join(File.dirname(__FILE__), '..', '..', 'fixtures',
        'config_template.html'))
    end

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
locomotive_plugins-1.2.0 spec/support/plugins/plugin_with_non_string_path.rb
locomotive_plugins-1.1.1 spec/support/plugins/plugin_with_non_string_path.rb
locomotive_plugins-1.1.0 spec/support/plugins/plugin_with_non_string_path.rb
locomotive_plugins-1.0.1 spec/support/plugins/plugin_with_non_string_path.rb
locomotive_plugins-1.0.0.beta10 spec/support/plugins/plugin_with_non_string_path.rb
locomotive_plugins-1.0.0.beta9 spec/support/plugins/plugin_with_non_string_path.rb
locomotive_plugins-1.0.0.beta8 spec/support/plugins/plugin_with_non_string_path.rb
locomotive_plugins-1.0.0.beta7 spec/support/plugins/plugin_with_non_string_path.rb
locomotive_plugins-1.0.0.beta6 spec/support/plugins/plugin_with_non_string_path.rb
locomotive_plugins-1.0.0.beta5 spec/support/plugins/plugin_with_non_string_path.rb
locomotive_plugins-1.0.0.beta4 spec/support/plugins/plugin_with_non_string_path.rb
locomotive_plugins-1.0.0.beta3 spec/support/plugins/plugin_with_non_string_path.rb
locomotive_plugins-1.0.0.beta2 spec/support/plugins/plugin_with_non_string_path.rb