Exception: NightTime::Jst::Build
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- NightTime::Jst::Build
- Defined in:
- lib/night-time/jst.rb
Instance Attribute Summary collapse
-
#day ⇒ Object
Returns the value of attribute day.
-
#hour ⇒ Object
Returns the value of attribute hour.
-
#min ⇒ Object
Returns the value of attribute min.
-
#month ⇒ Object
Returns the value of attribute month.
-
#sec ⇒ Object
Returns the value of attribute sec.
-
#year ⇒ Object
Returns the value of attribute year.
Instance Method Summary collapse
- #date? ⇒ Boolean
- #full? ⇒ Boolean
- #inspect ⇒ Object
- #time? ⇒ Boolean
- #to_array ⇒ Object
- #to_time ⇒ Object
Instance Attribute Details
#day ⇒ Object
Returns the value of attribute day.
11 12 13 |
# File 'lib/night-time/jst.rb', line 11 def day @day end |
#hour ⇒ Object
Returns the value of attribute hour.
11 12 13 |
# File 'lib/night-time/jst.rb', line 11 def hour @hour end |
#min ⇒ Object
Returns the value of attribute min.
11 12 13 |
# File 'lib/night-time/jst.rb', line 11 def min @min end |
#month ⇒ Object
Returns the value of attribute month.
11 12 13 |
# File 'lib/night-time/jst.rb', line 11 def month @month end |
#sec ⇒ Object
Returns the value of attribute sec.
11 12 13 |
# File 'lib/night-time/jst.rb', line 11 def sec @sec end |
#year ⇒ Object
Returns the value of attribute year.
11 12 13 |
# File 'lib/night-time/jst.rb', line 11 def year @year end |
Instance Method Details
#date? ⇒ Boolean
12 |
# File 'lib/night-time/jst.rb', line 12 def date?; month and day; end |
#full? ⇒ Boolean
14 |
# File 'lib/night-time/jst.rb', line 14 def full?; date? and time?; end |
#inspect ⇒ Object
17 |
# File 'lib/night-time/jst.rb', line 17 def inspect; "<Build: %s>" % [year,month,day,hour,min,sec].inspect; end |
#time? ⇒ Boolean
13 |
# File 'lib/night-time/jst.rb', line 13 def time?; hour and min; end |
#to_array ⇒ Object
15 |
# File 'lib/night-time/jst.rb', line 15 def to_array; [year, month, day, hour, min, sec]; end |