Class: RI::AttributeFormatter::AttrChar
- Inherits:
-
Object
- Object
- RI::AttributeFormatter::AttrChar
- Defined in:
- lib/rdoc/ri/ri_formatter.rb
Overview
TODO: struct?
Instance Attribute Summary collapse
-
#attr ⇒ Object
readonly
Returns the value of attribute attr.
-
#char ⇒ Object
readonly
Returns the value of attribute char.
Instance Method Summary collapse
-
#initialize(char, attr) ⇒ AttrChar
constructor
A new instance of AttrChar.
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
#attr ⇒ Object (readonly)
Returns the value of attribute attr
258 259 260 |
# File 'lib/rdoc/ri/ri_formatter.rb', line 258 def attr @attr end |
#char ⇒ Object (readonly)
Returns the value of attribute char
257 258 259 |
# File 'lib/rdoc/ri/ri_formatter.rb', line 257 def char @char end |