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



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

def label
  @label
end

Instance Method Details

#idObject



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

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