Sha256: 71a16abc5cf76fcefaa814c35277a50f08ff8bb86d166a98ccd4caa7b2616c3e
Contents?: true
Size: 1.08 KB
Versions: 3
Compression:
Stored size: 1.08 KB
Contents
require_relative 'view' module Vedeu # Provides the mechanism to render views for the client application. The # client application's ApplicationView will inherit from this class. # # @api private class ApplicationView include Vedeu::View # Renders the view. # # @param args [void] # @return [void] def self.render(*args) new(args).render end # Returns a new instance of Vedeu::ApplicationView. # # @param args [void] # @return [Vedeu::ApplicationView] def initialize(*args) @args = args end protected # @!attribute [r] args # @return [void] attr_reader :args # # @!attribute [r] template # # @return [void] # attr_reader :template private # Provides the path to the template file using the base_path configuration # option. # # @param value [String] # @return [String] # :nocov: def template(value) @template = Vedeu::Configuration.base_path + "/app/views/templates/#{value}.erb" end # :nocov: end # ApplicationView end # Vedeu
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.4.52 | lib/vedeu/application/application_view.rb |
vedeu-0.4.51 | lib/vedeu/application/application_view.rb |
vedeu-0.4.50 | lib/vedeu/application/application_view.rb |