Class: Maglev::SectionGenerator::BlockSetting

Inherits:
SectionSetting show all
Defined in:
lib/generators/maglev/section_generator.rb

Instance Attribute Summary collapse

Attributes inherited from SectionSetting

#id, #label, #type

Instance Method Summary collapse

Methods inherited from SectionSetting

#default, #value?

Constructor Details

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

Returns a new instance of BlockSetting.



129
130
131
132
# File 'lib/generators/maglev/section_generator.rb', line 129

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.



127
128
129
# File 'lib/generators/maglev/section_generator.rb', line 127

def block_type
  @block_type
end