Class: Locomotive::Wagon::Generators::BlockSetting

Inherits:
SectionSetting show all
Defined in:
lib/locomotive/wagon/generators/section.rb

Instance Attribute Summary collapse

Attributes inherited from SectionSetting

#id, #label, #type

Instance Method Summary collapse

Methods inherited from SectionSetting

#default, #has_value?

Constructor Details

#initialize(block_type, id, type, label = nil) ⇒ BlockSetting

Returns a new instance of BlockSetting.



178
179
180
181
# File 'lib/locomotive/wagon/generators/section.rb', line 178

def initialize(block_type, id, type, label = nil)
  super(id, type, label)
  @block_type = block_type
end

Instance Attribute Details

#block_typeObject (readonly)

Returns the value of attribute block_type.



176
177
178
# File 'lib/locomotive/wagon/generators/section.rb', line 176

def block_type
  @block_type
end