class KafoWizards::Entries::ButtonEntry

Attributes

name[R]

Public Class Methods

entry_type() click to toggle source
# File lib/kafo_wizards/entries/button.rb, line 22
def self.entry_type
  :button
end
new(name, options={}) click to toggle source
Calls superclass method KafoWizards::Entries::AbstractEntry.new
# File lib/kafo_wizards/entries/button.rb, line 7
def initialize(name, options={})
  super(name, options)
  @default = !!options.fetch(:default, true)
  @value = name
  @trigger_validation = !!options.fetch(:trigger_validation, true)
end

Public Instance Methods

default?() click to toggle source
# File lib/kafo_wizards/entries/button.rb, line 14
def default?
  @default
end
trigger_validation?() click to toggle source
# File lib/kafo_wizards/entries/button.rb, line 18
def trigger_validation?
  @trigger_validation
end