class GatherContent::DSL::Base
Public Class Methods
new(tab, child)
click to toggle source
# File lib/gather_content/dsl/base.rb, line 6 def initialize(tab, child) @child = child tab.elements << @child end
Public Instance Methods
label(label)
click to toggle source
# File lib/gather_content/dsl/base.rb, line 15 def label(label) @child.label = label end
microcopy(microcopy)
click to toggle source
# File lib/gather_content/dsl/base.rb, line 23 def microcopy(microcopy) @child.microcopy = microcopy end
name(name)
click to toggle source
# File lib/gather_content/dsl/base.rb, line 11 def name(name) @child.name = name end
required(required)
click to toggle source
# File lib/gather_content/dsl/base.rb, line 19 def required(required) @child.required = required end