Sha256: a86daa3f9bb50b7626895f45f73b7d40b0712b865f351b9bbfc7b3745d9fca00
Contents?: true
Size: 891 Bytes
Versions: 1
Compression:
Stored size: 891 Bytes
Contents
class SFCRoom::Room def initialize building,room,floor=nil @building = building @room = room @floor = floor end def inspect "[SFCRoom #{to_roman}]" end def to_s to_japanese end def to_greek "#{building_in_greek}#{@room}" end def to_roman "#{building_in_roman}#{@room}" end def to_japanese "#{building_in_japanese}#{@room}" end def building_in_japanese SFCRoom::Buildings::JapaneseName[@building] end def building_in_greek SFCRoom::Buildings::GreekChar[@building] || SFCRoom::Buildings::JapaneseName[@building] end def building_in_roman SFCRoom::Buildings::RomanChar[@building] || SFCRoom::Buildings::JapaneseName[@building] end def building_number_for_sfs SFCRoom::Buildings::SFSNumber[@building] || SFCRoom::Buildings::SFSNumber[SFCRoom::Buildings::Others] end attr_reader :building,:floor,:room end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sfc-room-0.0.1 | lib/sfc-room/room.rb |