Class: GatherContent::DSL::Text
- Inherits:
-
Base
- Object
- Base
- GatherContent::DSL::Text
show all
- Defined in:
- lib/gather_content/dsl/text.rb
Instance Method Summary
collapse
Methods inherited from Base
#label, #microcopy, #name, #required
Constructor Details
#initialize(tab) ⇒ Text
7
8
9
10
|
# File 'lib/gather_content/dsl/text.rb', line 7
def initialize(tab)
@text = GatherContent::Config::Element::Text.new
super(tab, @text)
end
|
Instance Method Details
#limit(limit) ⇒ Object
20
21
22
|
# File 'lib/gather_content/dsl/text.rb', line 20
def limit(limit)
@text.limit = limit
end
|
#limit_type(limit_type) ⇒ Object
16
17
18
|
# File 'lib/gather_content/dsl/text.rb', line 16
def limit_type(limit_type)
@text.limit_type = limit_type
end
|
#plain_text(plain_text) ⇒ Object
24
25
26
|
# File 'lib/gather_content/dsl/text.rb', line 24
def plain_text(plain_text)
@text.plain_text = plain_text
end
|
#value(value) ⇒ Object
12
13
14
|
# File 'lib/gather_content/dsl/text.rb', line 12
def value(value)
@text.value = value
end
|