Class: Tr8n::Tokens::Hidden
Overview
Hidden Token Forms:
_he_she _posted__items
'_' escaped as '/'
'__' escaped as '__'
Hidden tokens cannot have rules and are there for default language substitutions only
Instance Attribute Summary
Attributes inherited from Data
#case_keys, #context_keys, #full_name, #label, #short_name
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Data
#apply_case, #apply_language_cases, #context_for_language, #initialize, #key, #language_cases_enabled?, #name, #name_for_case_keys, parse, #parse_elements, #sanitize, #sanitized_name, #substitute, #to_s, token_object, #token_value, #token_value_from_array, #token_value_from_param_array, #token_value_from_param_hash
Constructor Details
This class inherits a constructor from Tr8n::Tokens::Data
Class Method Details
.expression ⇒ Object
41 42 43 |
# File 'lib/tr8n/tokens/hidden.rb', line 41 def self.expression /(\{_[\w]+\})/ end |
Instance Method Details
#allowed_in_translation? ⇒ Boolean
45 46 47 |
# File 'lib/tr8n/tokens/hidden.rb', line 45 def allowed_in_translation? false end |