Class: Component::Cell::Static
- Inherits:
-
Dynamic
- Object
- Dynamic
- Component::Cell::Static
- Defined in:
- app/concepts/component/cell/static.rb
Direct Known Subclasses
Div::Cell::Div, Header::Cell::Header, Heading::Cell::Heading, Img::Cell::Img, Link::Cell::Link, Main::Cell::Main, Nav::Cell::Nav, Navigation::Cell::Button, Page::Cell::Content, Partial::Cell::Partial, Plain::Cell::Plain, Section::Cell::Section, Span::Cell::Span
Instance Method Summary collapse
-
#initialize(model = nil, options = {}) ⇒ Static
constructor
A new instance of Static.
- #show(&block) ⇒ Object
Constructor Details
#initialize(model = nil, options = {}) ⇒ Static
Returns a new instance of Static.
4 5 6 7 |
# File 'app/concepts/component/cell/static.rb', line 4 def initialize(model=nil, ={}) super @static = true end |
Instance Method Details
#show(&block) ⇒ Object
9 10 11 |
# File 'app/concepts/component/cell/static.rb', line 9 def show(&block) render(view: :static, &block) end |