Top Level Namespace

Defined Under Namespace

Modules: Ability, Card, Event, JsonPersist, MongoHash, Parse, Selectable Classes: Array, Cards, Center, CenterDeck, CenterWithConstants, Choices, Class, Constructs, Discard, Events, Game, Hand, Object, Played, PlayerDeck, Pool, Side, Trigger, TurnManager, Void

Instance Method Summary collapse

Instance Method Details

#dbObject



14
15
16
# File 'lib/ascension.rb', line 14

def db
  Mongo::Connection.new.db('ascension')
end

#playing_on_command_line?Boolean

Returns:

  • (Boolean)


5
6
7
8
# File 'lib/ascension.rb', line 5

def playing_on_command_line?
  $playing_on_command_line = true if $playing_on_command_line.nil?
  $playing_on_command_line
end