class GatherContent::DSL::OtherOption

Public Class Methods

new(choice) click to toggle source
# File lib/gather_content/dsl/other_option.rb, line 7
def initialize(choice)
  @option = GatherContent::Config::Element::OtherOption.new
  choice.other_option = true
  choice.options << @option
end

Public Instance Methods

value(value) click to toggle source
# File lib/gather_content/dsl/other_option.rb, line 13
def value(value)
  @option.value = value
end