Class: ZLocalize::RangeExpression
- Inherits:
-
IdentifierExpression
- Object
- Expression
- IdentifierExpression
- ZLocalize::RangeExpression
- Defined in:
- lib/zlocalize/rdoc_source_parser.rb
Overview
class SymbolExpression
Instance Attribute Summary collapse
-
#high ⇒ Object
Returns the value of attribute high.
-
#low ⇒ Object
:nodoc: all.
Attributes inherited from IdentifierExpression
Attributes inherited from Expression
#char_no, #line_no, #sub_method, #text
Instance Method Summary collapse
Methods inherited from IdentifierExpression
#initialize, #to_translation_entry
Methods inherited from Expression
#initialize, #is_translate_call, #prefix, #set_text, #to_translation_entry
Constructor Details
This class inherits a constructor from ZLocalize::IdentifierExpression
Instance Attribute Details
#high ⇒ Object
Returns the value of attribute high.
175 176 177 |
# File 'lib/zlocalize/rdoc_source_parser.rb', line 175 def high @high end |
#low ⇒ Object
:nodoc: all
174 175 176 |
# File 'lib/zlocalize/rdoc_source_parser.rb', line 174 def low @low end |
Instance Method Details
#display(indent = 0) ⇒ Object
177 178 179 180 181 182 183 |
# File 'lib/zlocalize/rdoc_source_parser.rb', line 177 def display(indent = 0) p = prefix(indent) i = p + "#{self.class.name} (#{line_no},#{char_no})\n" i << p + "low:\n" + low.display(indent+1) i << p + "high:\n" + high.display(indent+1) i << "\n" end |
#to_entry_string ⇒ Object
185 186 187 |
# File 'lib/zlocalize/rdoc_source_parser.rb', line 185 def to_entry_string return "\"(range)\"".force_encoding("UTF-8") end |