Class: ANVL::Erc::Element
- Inherits:
-
ANVL::Element
- Object
- ANVL::Element
- ANVL::Erc::Element
- Defined in:
- lib/anvl/erc.rb
Instance Attribute Summary
Attributes inherited from ANVL::Element
#display_label, #document, #label, #value
Instance Method Summary collapse
Methods inherited from ANVL::Element
#<=>, #==, #[], #initialize, #push, #to_anvl
Constructor Details
This class inherits a constructor from ANVL::Element
Instance Method Details
#=~(str) ⇒ Object
24 25 26 27 28 29 |
# File 'lib/anvl/erc.rb', line 24 def =~ str bool = super label = convert_label str bool ||= (label =~ Regexp.new("\\(#{Regexp.escape(@label)}\\)")) end |
#to_s ⇒ Object
17 18 19 20 21 22 |
# File 'lib/anvl/erc.rb', line 17 def to_s str = super str &&= format_initial_comma_to_recover_word_order str str &&= decode_element_value_encoding str str end |