Class: RI::AttributeFormatter::AttrChar

Inherits:
Object
  • Object
show all
Defined in:
lib/rdoc/ri/ri_formatter.rb

Overview

TODO: struct?

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(char, attr) ⇒ AttrChar

Returns a new instance of AttrChar.



260
261
262
263
# File 'lib/rdoc/ri/ri_formatter.rb', line 260

def initialize(char, attr)
  @char = char
  @attr = attr
end

Instance Attribute Details

#attrObject (readonly)

Returns the value of attribute attr



258
259
260
# File 'lib/rdoc/ri/ri_formatter.rb', line 258

def attr
  @attr
end

#charObject (readonly)

Returns the value of attribute char



257
258
259
# File 'lib/rdoc/ri/ri_formatter.rb', line 257

def char
  @char
end