Class: RDoc::RubyToken::TkOPASGN
- Defined in:
 - lib/rdoc/ruby_token.rb
 
Instance Attribute Summary collapse
- 
  
    
      #op  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute op.
 
Attributes inherited from TkOp
Attributes inherited from Token
Instance Method Summary collapse
- #==(other) ⇒ Object
 - 
  
    
      #initialize(seek, line_no, char_no, op)  ⇒ TkOPASGN 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of TkOPASGN.
 - 
  
    
      #inspect  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
:nodoc:.
 - #text ⇒ Object
 
Methods inherited from TkOp
Methods inherited from Token
Constructor Details
#initialize(seek, line_no, char_no, op) ⇒ TkOPASGN
Returns a new instance of TkOPASGN.
      189 190 191 192 193 194  | 
    
      # File 'lib/rdoc/ruby_token.rb', line 189 def initialize(seek, line_no, char_no, op) super(seek, line_no, char_no) op = TkReading2Token[op][0] unless op.kind_of?(Symbol) @op = op @text = nil end  | 
  
Instance Attribute Details
#op ⇒ Object (readonly)
Returns the value of attribute op.
      196 197 198  | 
    
      # File 'lib/rdoc/ruby_token.rb', line 196 def op @op end  | 
  
Instance Method Details
#==(other) ⇒ Object
      198 199 200 201 202 203  | 
    
      # File 'lib/rdoc/ruby_token.rb', line 198 def ==(other) self.class == other.class and other.line_no == @line_no and other.char_no == @char_no and other.op == @op end  | 
  
#inspect ⇒ Object
:nodoc:
      209 210 211 212  | 
    
      # File 'lib/rdoc/ruby_token.rb', line 209 def inspect # :nodoc: klass = self.class.name.split('::').last "{%s %d, %d:%d %p}" % [klass, @seek, @line_no, @char_no, @op] end  | 
  
#text ⇒ Object
      205 206 207  | 
    
      # File 'lib/rdoc/ruby_token.rb', line 205 def text @text ||= "#{TkToken2Reading[op]}=" end  |