Class: GOVUKDesignSystemFormBuilder::Elements::Null

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

Instance Method Summary collapse

Methods inherited from Base

#field_id, #to_s

Constructor Details

#initializeNull

Returns a new instance of Null.



4
5
6
# File 'lib/govuk_design_system_formbuilder/elements/null.rb', line 4

def initialize
  super(nil, nil, nil)
end

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/govuk_design_system_formbuilder/elements/null.rb', line 12

def active?
  false
end

#hint_idObject



16
17
18
# File 'lib/govuk_design_system_formbuilder/elements/null.rb', line 16

def hint_id
  nil
end

#htmlObject



8
9
10
# File 'lib/govuk_design_system_formbuilder/elements/null.rb', line 8

def html
  nil
end