Class: Super::Panel
- Inherits:
-
Object
- Object
- Super::Panel
- Defined in:
- lib/super/panel.rb
Instance Attribute Summary collapse
-
#parts ⇒ Object
readonly
Returns the value of attribute parts.
Instance Method Summary collapse
-
#initialize(*parts) ⇒ Panel
constructor
A new instance of Panel.
- #to_partial_path ⇒ Object
Constructor Details
#initialize(*parts) ⇒ Panel
Returns a new instance of Panel.
3 4 5 6 7 8 9 |
# File 'lib/super/panel.rb', line 3 def initialize(*parts) if block_given? @parts = Array.new(yield) end @parts = parts end |
Instance Attribute Details
#parts ⇒ Object (readonly)
Returns the value of attribute parts.
11 12 13 |
# File 'lib/super/panel.rb', line 11 def parts @parts end |
Instance Method Details
#to_partial_path ⇒ Object
13 14 15 |
# File 'lib/super/panel.rb', line 13 def to_partial_path "super_panel" end |