class Sirens::RadioButtonGroupBuilder

Public Class Methods

new() click to toggle source

Initializing

# File lib/components_builder/radio_button_group_builder.rb, line 6
def initialize()
    @buttons = []
end

Public Instance Methods

radio_button(props = Hash[]) click to toggle source

List columns

# File lib/components_builder/radio_button_group_builder.rb, line 22
def radio_button(props = Hash[])
    props[:previous_button] = @buttons.last

    @buttons << RadioButton.new(props)
end
render(&block) click to toggle source

Evaluating

# File lib/components_builder/radio_button_group_builder.rb, line 12
def render(&block)
    @buttons = []

    instance_exec(self, &block)

    @buttons
end