Class: SM::AttrChanger

Inherits:
Struct
  • Object
show all
Defined in:
lib/rdoc/markup/simple_markup/inline.rb,
lib/rdoc/markup/simple_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



44
45
46
# File 'lib/rdoc/markup/simple_markup/inline.rb', line 44

def turn_off
  @turn_off
end

#turn_onObject

Returns the value of attribute turn_on

Returns:

  • (Object)

    the current value of turn_on



44
45
46
# File 'lib/rdoc/markup/simple_markup/inline.rb', line 44

def turn_on
  @turn_on
end

Instance Method Details

#to_sObject



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

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