Class: Houston::Extensions::HasForm::Field

Inherits:
Struct
  • Object
show all
Includes:
Permitted, Render
Defined in:
lib/houston/boot/extensions/dsl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Permitted

#permitted?

Methods included from Render

#render

Instance Attribute Details

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



81
82
83
# File 'lib/houston/boot/extensions/dsl.rb', line 81

def label
  @label
end

Instance Method Details

#idObject



84
85
86
# File 'lib/houston/boot/extensions/dsl.rb', line 84

def id
  "__props_#{label.tr(" ", "_").underscore}"
end