Class: Shark::FormService::Form::TextField

Inherits:
Element
  • Object
show all
Defined in:
lib/shark/form_service/form/text_field.rb

Instance Attribute Summary

Attributes inherited from Element

#children, #parent

Instance Method Summary collapse

Methods inherited from Element

#ancestors, #attribute_defined?, #attribute_definition, #attribute_definitions, #id, #initialize, #label, #text, #type

Constructor Details

This class inherits a constructor from Shark::FormService::Form::Element

Instance Method Details

#post_textObject



11
12
13
# File 'lib/shark/form_service/form/text_field.rb', line 11

def post_text
  attribute_definition('post_text')['value']
end

#pre_textObject



7
8
9
# File 'lib/shark/form_service/form/text_field.rb', line 7

def pre_text
  attribute_definition('pre_text')['value']
end