Class: Rake::OOR
- Inherits:
-
Struct
- Object
- Struct
- Rake::OOR
- Defined in:
- lib/only_one_rake.rb
Instance Attribute Summary collapse
-
#c ⇒ Object
Returns the value of attribute c.
-
#cmd ⇒ Object
Returns the value of attribute cmd.
-
#pid ⇒ Object
Returns the value of attribute pid.
-
#ppid ⇒ Object
Returns the value of attribute ppid.
-
#stime ⇒ Object
Returns the value of attribute stime.
-
#time ⇒ Object
Returns the value of attribute time.
-
#tty ⇒ Object
Returns the value of attribute tty.
-
#uid ⇒ Object
Returns the value of attribute uid.
Instance Method Summary collapse
Instance Attribute Details
#c ⇒ Object
Returns the value of attribute c
4 5 6 |
# File 'lib/only_one_rake.rb', line 4 def c @c end |
#cmd ⇒ Object
Returns the value of attribute cmd
4 5 6 |
# File 'lib/only_one_rake.rb', line 4 def cmd @cmd end |
#pid ⇒ Object
Returns the value of attribute pid
4 5 6 |
# File 'lib/only_one_rake.rb', line 4 def pid @pid end |
#ppid ⇒ Object
Returns the value of attribute ppid
4 5 6 |
# File 'lib/only_one_rake.rb', line 4 def ppid @ppid end |
#stime ⇒ Object
Returns the value of attribute stime
4 5 6 |
# File 'lib/only_one_rake.rb', line 4 def stime @stime end |
#time ⇒ Object
Returns the value of attribute time
4 5 6 |
# File 'lib/only_one_rake.rb', line 4 def time @time end |
#tty ⇒ Object
Returns the value of attribute tty
4 5 6 |
# File 'lib/only_one_rake.rb', line 4 def tty @tty end |
#uid ⇒ Object
Returns the value of attribute uid
4 5 6 |
# File 'lib/only_one_rake.rb', line 4 def uid @uid end |
Instance Method Details
#equal?(n, t) ⇒ Boolean
8 |
# File 'lib/only_one_rake.rb', line 8 def equal?(n, t); self.nt_str == "#{n}:#{t}" end |
#namespace ⇒ Object
6 |
# File 'lib/only_one_rake.rb', line 6 def namespace; self.nt_str[0] end |
#nt_str ⇒ Object
5 |
# File 'lib/only_one_rake.rb', line 5 def nt_str; self.cmd.split.select {|i| i.match(/:/) }[0].split(':') end |
#task ⇒ Object
7 |
# File 'lib/only_one_rake.rb', line 7 def task; self.nt_str[1] end |