Class: LoremIpsumAmet::Character

Inherits:
Object
  • Object
show all
Defined in:
lib/lorem_ipsum_amet/character.rb

Instance Method Summary collapse

Constructor Details

#initialize(base, characters, join_element) ⇒ Character

Returns a new instance of Character.



4
5
6
7
8
# File 'lib/lorem_ipsum_amet/character.rb', line 4

def initialize(base, characters, join_element)
  @base = base
  @characters = characters
  @join_element = join_element
end

Instance Method Details

#textObject



10
11
12
# File 'lib/lorem_ipsum_amet/character.rb', line 10

def text
  joined_text[0...@characters]
end