Class: ZLocalize::RangeExpression

Inherits:
IdentifierExpression show all
Defined in:
lib/zlocalize/rdoc_source_parser.rb

Overview

class SymbolExpression

Instance Attribute Summary collapse

Attributes inherited from IdentifierExpression

#name, #parameters

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

#highObject

Returns the value of attribute high.



175
176
177
# File 'lib/zlocalize/rdoc_source_parser.rb', line 175

def high
  @high
end

#lowObject

: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_stringObject



185
186
187
# File 'lib/zlocalize/rdoc_source_parser.rb', line 185

def to_entry_string
  return "\"(range)\"".force_encoding("UTF-8")
end