Class: Presentation::Base

Inherits:
Object
  • Object
show all
Includes:
Presenting::Configurable
Defined in:
lib/presentation/base.rb

Direct Known Subclasses

Form, Grid, Search

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Presenting::Configurable

#initialize

Instance Attribute Details

#controllerObject

Returns the value of attribute controller.



11
12
13
# File 'lib/presentation/base.rb', line 11

def controller
  @controller
end

#presentableObject

Returns the value of attribute presentable.



9
10
11
# File 'lib/presentation/base.rb', line 9

def presentable
  @presentable
end

Instance Method Details

#renderObject



5
6
7
# File 'lib/presentation/base.rb', line 5

def render
  view.render :partial => "presentations/#{self.class.to_s.split('::').last.underscore}"
end