class Faker::Buront::Saying

Attributes

body[RW]
title[RW]

Public Class Methods

new(title: arg_title,body: arg_body) click to toggle source
# File lib/faker/buront/saying.rb, line 6
def initialize(title: arg_title,body: arg_body)
  self.title = title
  self.body = body
end

Public Instance Methods

body_array() click to toggle source
# File lib/faker/buront/saying.rb, line 11
def body_array
  body.split("\n")
end
oneline() click to toggle source
# File lib/faker/buront/saying.rb, line 15
def oneline
  body_array.join
end
random_body_oneline() click to toggle source
# File lib/faker/buront/saying.rb, line 19
def random_body_oneline
  body_array.sample
end