Class: GOVUKDesignSystemFormBuilder::Proxy

Inherits:
Base
  • Object
show all
Defined in:
lib/govuk_design_system_formbuilder/proxy.rb

Defined Under Namespace

Classes: NullBuilder

Instance Method Summary collapse

Methods inherited from Base

#field_id, #to_s

Constructor Details

#initialize(object, object_name, attribute_name, value: nil) ⇒ Proxy

Returns a new instance of Proxy.



7
8
9
10
11
# File 'lib/govuk_design_system_formbuilder/proxy.rb', line 7

def initialize(object, object_name, attribute_name, value: nil)
  super(NullBuilder.new(object), object_name, attribute_name)

  @value = value
end