Class: RDocF95::Markup::AttrChanger

Inherits:
Struct
  • Object
show all
Defined in:
lib/rdoc-f95/markup/inline.rb,
lib/rdoc-f95/markup/inline.rb

Overview

An AttrChanger records a change in attributes. It contains a bitmap of the attributes to turn on, and a bitmap of those to turn off.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#turn_offObject

Returns the value of attribute turn_off

Returns:

  • (Object)

    the current value of turn_off



46
47
48
# File 'lib/rdoc-f95/markup/inline.rb', line 46

def turn_off
  @turn_off
end

#turn_onObject

Returns the value of attribute turn_on

Returns:

  • (Object)

    the current value of turn_on



46
47
48
# File 'lib/rdoc-f95/markup/inline.rb', line 46

def turn_on
  @turn_on
end

Instance Method Details

#to_sObject



49
50
51
# File 'lib/rdoc-f95/markup/inline.rb', line 49

def to_s
  "Attr: +#{Attribute.as_string(@turn_on)}/-#{Attribute.as_string(@turn_on)}"
end