Class: Clogs::Run

Inherits:
Struct
  • Object
show all
Defined in:
lib/clogs/text.rb

Overview

One styled run of text inside a paragraph.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#boldObject

Returns the value of attribute bold

Returns:

  • (Object)

    the current value of bold



7
8
9
# File 'lib/clogs/text.rb', line 7

def bold
  @bold
end

#colorObject

Returns the value of attribute color

Returns:

  • (Object)

    the current value of color



7
8
9
# File 'lib/clogs/text.rb', line 7

def color
  @color
end

#familyObject

Returns the value of attribute family

Returns:

  • (Object)

    the current value of family



7
8
9
# File 'lib/clogs/text.rb', line 7

def family
  @family
end

#italicObject

Returns the value of attribute italic

Returns:

  • (Object)

    the current value of italic



7
8
9
# File 'lib/clogs/text.rb', line 7

def italic
  @italic
end

#ownerObject

Returns the value of attribute owner

Returns:

  • (Object)

    the current value of owner



7
8
9
# File 'lib/clogs/text.rb', line 7

def owner
  @owner
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



7
8
9
# File 'lib/clogs/text.rb', line 7

def size
  @size
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



7
8
9
# File 'lib/clogs/text.rb', line 7

def text
  @text
end

#underlineObject

Returns the value of attribute underline

Returns:

  • (Object)

    the current value of underline



7
8
9
# File 'lib/clogs/text.rb', line 7

def underline
  @underline
end

Instance Method Details

#style_keyObject



8
9
10
# File 'lib/clogs/text.rb', line 8

def style_key
  [size, color, family, bold, italic, underline]
end