Class: Infold::Views::ShowWriter
- Inherits:
-
BaseWriter
- Object
- BaseWriter
- BaseWriter
- Infold::Views::ShowWriter
- Defined in:
- lib/infold/writers/views/show_writer.rb
Instance Attribute Summary collapse
-
#app_title ⇒ Object
readonly
Returns the value of attribute app_title.
Attributes inherited from BaseWriter
Instance Method Summary collapse
-
#initialize(resource, app_title = nil) ⇒ ShowWriter
constructor
A new instance of ShowWriter.
- #show_fields ⇒ Object
Methods inherited from BaseWriter
Methods inherited from BaseWriter
#edit_path, #indent, #index_path, #new_path, #resource_name, #show_path
Constructor Details
#initialize(resource, app_title = nil) ⇒ ShowWriter
Returns a new instance of ShowWriter.
8 9 10 11 |
# File 'lib/infold/writers/views/show_writer.rb', line 8 def initialize(resource, app_title=nil) @resource = resource @app_title = app_title || @resource.name end |
Instance Attribute Details
#app_title ⇒ Object (readonly)
Returns the value of attribute app_title.
6 7 8 |
# File 'lib/infold/writers/views/show_writer.rb', line 6 def app_title @app_title end |
Instance Method Details
#show_fields ⇒ Object
13 |
# File 'lib/infold/writers/views/show_writer.rb', line 13 def show_fields; @resource.show_fields end |