module TokyoMetro::Modules::Common::Info::NewAndOldRailwayLine

Public Instance Methods

already_ended?() click to toggle source
# File lib/tokyo_metro/modules/common/info/new_and_old_railway_line.rb, line 19
def already_ended?
  ended_already?
end
already_operated?() click to toggle source
# File lib/tokyo_metro/modules/common/info/new_and_old_railway_line.rb, line 11
def already_operated?
  operated_already?
end
ended_already?() click to toggle source
# File lib/tokyo_metro/modules/common/info/new_and_old_railway_line.rb, line 15
def ended_already?
  end_on.present? and ::Time.now > end_on
end
not_ended_yet?() click to toggle source
# File lib/tokyo_metro/modules/common/info/new_and_old_railway_line.rb, line 23
def not_ended_yet?
  !( ended_already? )
end
not_operated_now?() click to toggle source
# File lib/tokyo_metro/modules/common/info/new_and_old_railway_line.rb, line 27
def not_operated_now?
  !( not_operated_yet? or ended_already? )
end
not_operated_yet?() click to toggle source
# File lib/tokyo_metro/modules/common/info/new_and_old_railway_line.rb, line 3
def not_operated_yet?
  start_on.present? and ::Time.now < start_on
end
operated_already?() click to toggle source
# File lib/tokyo_metro/modules/common/info/new_and_old_railway_line.rb, line 7
def operated_already?
  !( not_operated_yet? )
end