Class: ObjectView::PasswordInput

Inherits:
Input show all
Defined in:
lib/object_view/input.rb

Instance Attribute Summary

Attributes inherited from Element

#acceptable_children, #children, #single_line, #tag

Instance Method Summary collapse

Methods inherited from Input

#name, #name=, #read_only, #read_only=, #type, #type=, #value, #value=

Methods inherited from Element

#<<, #add, #add_with_tag, #attr, #attributes, #css_class=, #find_element_with_tag, #id=, #is_acceptable_child?, #on_click=, #render, #render_attributes, #render_children, #style, #style=

Constructor Details

#initializePasswordInput

Returns a new instance of PasswordInput.



89
90
91
92
# File 'lib/object_view/input.rb', line 89

def initialize
  super
  self.type = 'password'
end

Instance Method Details

#place_holder=(text) ⇒ Object



94
95
96
# File 'lib/object_view/input.rb', line 94

def place_holder= text
  self.attr('value', text)
end