Class: Shoes::Text

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

Direct Known Subclasses

Code, Del, Em, Ins, Link, LinkHover, Span, Strong, Sub, Sup

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ Text

Returns a new instance of Text.



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

def initialize(text)
  self.text = text.to_s
end

Instance Attribute Details

#textObject

Returns the value of attribute text.



4
5
6
# File 'lib/blue_shoes/text.rb', line 4

def text
  @text
end

Instance Method Details

#strong?Boolean

Returns:

  • (Boolean)


6
# File 'lib/blue_shoes/text.rb', line 6

def strong?; false; end

#to_sObject



12
13
14
# File 'lib/blue_shoes/text.rb', line 12

def to_s
  text
end