Class: Super::Panel

Inherits:
Object
  • Object
show all
Defined in:
lib/super/panel.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#partsObject (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_pathObject



13
14
15
# File 'lib/super/panel.rb', line 13

def to_partial_path
  "super_panel"
end