Top Level Namespace

Defined Under Namespace

Modules: RubyPitaya Classes: AppInitializer, CreatePlayerMigration, CreateUserMigration, ErrorHandler, HelloWorldHandler, Player, PlayerBLL, PlayerHandler, Routes, StatusCodes, User

Instance Method Summary collapse

Instance Method Details

#to_string(value) ⇒ Object



15
16
17
18
19
20
# File 'lib/rubypitaya/app-template/features/support/env.rb', line 15

def to_string(value)
  return value if value.class == String
  return value.to_s if value.class == Integer
  return 'nil' if value.nil?
  value
end