Class: GatherContent::DSL::Base
- Inherits:
-
Object
- Object
- GatherContent::DSL::Base
show all
- Defined in:
- lib/gather_content/dsl/base.rb
Instance Method Summary
collapse
Constructor Details
#initialize(tab, child) ⇒ Base
Returns a new instance of Base.
6
7
8
9
|
# File 'lib/gather_content/dsl/base.rb', line 6
def initialize(tab, child)
@child = child
tab.elements << @child
end
|
Instance Method Details
#label(label) ⇒ Object
15
16
17
|
# File 'lib/gather_content/dsl/base.rb', line 15
def label(label)
@child.label = label
end
|
#microcopy(microcopy) ⇒ Object
23
24
25
|
# File 'lib/gather_content/dsl/base.rb', line 23
def microcopy(microcopy)
@child.microcopy = microcopy
end
|
#name(name) ⇒ Object
11
12
13
|
# File 'lib/gather_content/dsl/base.rb', line 11
def name(name)
@child.name = name
end
|
#required(required) ⇒ Object
19
20
21
|
# File 'lib/gather_content/dsl/base.rb', line 19
def required(required)
@child.required = required
end
|