Class: LoremIpsumAmet::Character
- Inherits:
-
Object
- Object
- LoremIpsumAmet::Character
- Defined in:
- lib/lorem_ipsum_amet/character.rb
Instance Method Summary collapse
-
#initialize(base, characters, join_element) ⇒ Character
constructor
A new instance of Character.
- #text ⇒ Object
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
#text ⇒ Object
10 11 12 |
# File 'lib/lorem_ipsum_amet/character.rb', line 10 def text joined_text[0...@characters] end |