class Voom::Presenters::DSL::Components::FileInput
Attributes
accept[R]
components[R]
preview[R]
Public Class Methods
new(**attribs_, &block)
click to toggle source
Calls superclass method
# File lib/voom/presenters/dsl/components/file_input.rb, line 12 def initialize(**attribs_, &block) super(type: :file_input, **attribs_, &block) @accept = attribs.delete(:accept) { nil } @preview = attribs.delete(:preview) { nil } @components = [] expand! default_button end
Public Instance Methods
value(value=nil)
click to toggle source
# File lib/voom/presenters/dsl/components/file_input.rb, line 22 def value(value=nil) return @value if locked? @value = value end