Class: Labtime::CLI
- Inherits:
-
Thor
- Object
- Thor
- Labtime::CLI
- Defined in:
- lib/labtime.rb
Instance Method Summary collapse
Instance Method Details
#convert_decimal(decimal, year) ⇒ Object
18 19 20 |
# File 'lib/labtime.rb', line 18 def convert_decimal(decimal, year) puts Labtime.from_decimal(decimal.to_f,year.to_i).to_time.to_s end |
#hello(name) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/labtime.rb', line 9 def hello(name) if name == "Heisenberg" puts "you are goddman right" else puts "say my name" end end |