class Pres::Presenter
Attributes
object[R]
options[R]
Public Class Methods
new(object, view_context = nil, options = {})
click to toggle source
# File lib/pres/presenter.rb, line 12 def initialize(object, view_context = nil, options = {}) @object = object @view_context = view_context @options = options end
Public Instance Methods
id()
click to toggle source
# File lib/pres/presenter.rb, line 18 def id object.id end
inspect()
click to toggle source
# File lib/pres/presenter.rb, line 26 def inspect [ object.inspect, "options: #{options.inspect}", "view_context: #{view_context.class.name}" ].join("\n") end
to_partial_path()
click to toggle source
# File lib/pres/presenter.rb, line 22 def to_partial_path object.to_partial_path end