Sha256: 88348c22854b10d504cfeb81580dccc4e7d4a360e7d43419b6c27f194d54afef
Contents?: true
Size: 924 Bytes
Versions: 1
Compression:
Stored size: 924 Bytes
Contents
require_relative 'view' module Vedeu # Provides the mechanism to render views for the client application. # # @api private class ApplicationView include Vedeu::View # Renders the view. # # @param object [void] # @return [void] def self.render(object = nil) new(object).render end # Returns a new instance of Vedeu::ApplicationView. # # @param object [void] # @return [Vedeu::ApplicationView] def initialize(object = nil) @object = object end protected # @!attribute [r] object # @return [void] attr_reader :object # # @!attribute [r] template # # @return [void] # attr_reader :template private # @param value [String] # @return [String] def template(value) @template = Vedeu::Configuration.base_path + "/app/views/templates/#{value}.erb" end end # ApplicationView end # Vedeu
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.4.43 | lib/vedeu/application/application_view.rb |