Sha256: d292728b2be17afa4a8ab37e52242d7a21f6ceb6fa6a111b3efca22c6c18424b

Contents?: true

Size: 785 Bytes

Versions: 31

Compression:

Stored size: 785 Bytes

Contents

module VeryThinTestSlice
  
  # All Slice code is expected to be namespaced inside this module.
  
  class Application < Merb::Controller
    
    controller_for_slice
    
    private
    
    # Construct a path relative to the public directory
    def public_path_for(type, *segments)
      ::VeryThinTestSlice.public_path_for(type, *segments)
    end
    
    # Construct an app-level path.
    def app_path_for(type, *segments)
      ::VeryThinTestSlice.app_path_for(type, *segments)
    end
    
    # Construct a slice-level path
    def slice_path_for(type, *segments)
      ::VeryThinTestSlice.slice_path_for(type, *segments)
    end
    
  end
  
  class Main < Application
    
    def index
      render "#{slice.description} (v. #{slice.version})"
    end
    
  end
  
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
merb-slices-1.1.3 spec/slices/very-thin-test-slice/application.rb
merb-slices-1.1.2 spec/slices/very-thin-test-slice/application.rb
merb-slices-1.1.1 spec/slices/very-thin-test-slice/application.rb
merb-slices-1.1.0 spec/slices/very-thin-test-slice/application.rb
merb-slices-1.1.0.rc1 spec/slices/very-thin-test-slice/application.rb
merb-slices-1.1.0.pre spec/slices/very-thin-test-slice/application.rb
merb-slices-1.0.15 spec/slices/very-thin-test-slice/application.rb
merb-slices-1.0.14 spec/slices/very-thin-test-slice/application.rb
merb-slices-1.0.13 spec/slices/very-thin-test-slice/application.rb
merb-slices-1.0.12 spec/slices/very-thin-test-slice/application.rb
merb-slices-1.0.11 spec/slices/very-thin-test-slice/application.rb
merb-slices-0.9.9 spec/slices/very-thin-test-slice/application.rb
merb-slices-0.9.13 spec/slices/very-thin-test-slice/application.rb
merb-slices-0.9.11 spec/slices/very-thin-test-slice/application.rb
merb-slices-0.9.10 spec/slices/very-thin-test-slice/application.rb
merb-slices-1.0.2 spec/slices/very-thin-test-slice/application.rb
merb-slices-1.0.3 spec/slices/very-thin-test-slice/application.rb
merb-slices-1.0.4 spec/slices/very-thin-test-slice/application.rb
merb-slices-1.0.5 spec/slices/very-thin-test-slice/application.rb
merb-slices-0.9.8 spec/slices/very-thin-test-slice/application.rb