Class: LogRow
Instance Attribute Summary collapse
-
#_id ⇒ Object
Returns the value of attribute _id.
-
#base_line ⇒ Object
Returns the value of attribute base_line.
-
#caller ⇒ Object
Returns the value of attribute caller.
-
#dt ⇒ Object
Returns the value of attribute dt.
-
#library ⇒ Object
Returns the value of attribute library.
-
#library_line ⇒ Object
Returns the value of attribute library_line.
-
#message ⇒ Object
Returns the value of attribute message.
-
#spec ⇒ Object
Returns the value of attribute spec.
-
#spec_line ⇒ Object
Returns the value of attribute spec_line.
Instance Method Summary collapse
Instance Attribute Details
#_id ⇒ Object
Returns the value of attribute _id.
138 139 140 |
# File 'lib/sprockets_fs/log.rb', line 138 def _id @_id end |
#base_line ⇒ Object
Returns the value of attribute base_line.
138 139 140 |
# File 'lib/sprockets_fs/log.rb', line 138 def base_line @base_line end |
#caller ⇒ Object
Returns the value of attribute caller.
138 139 140 |
# File 'lib/sprockets_fs/log.rb', line 138 def caller @caller end |
#dt ⇒ Object
Returns the value of attribute dt.
138 139 140 |
# File 'lib/sprockets_fs/log.rb', line 138 def dt @dt end |
#library ⇒ Object
Returns the value of attribute library.
138 139 140 |
# File 'lib/sprockets_fs/log.rb', line 138 def library @library end |
#library_line ⇒ Object
Returns the value of attribute library_line.
138 139 140 |
# File 'lib/sprockets_fs/log.rb', line 138 def library_line @library_line end |
#message ⇒ Object
Returns the value of attribute message.
138 139 140 |
# File 'lib/sprockets_fs/log.rb', line 138 def @message end |
#spec ⇒ Object
Returns the value of attribute spec.
138 139 140 |
# File 'lib/sprockets_fs/log.rb', line 138 def spec @spec end |
#spec_line ⇒ Object
Returns the value of attribute spec_line.
138 139 140 |
# File 'lib/sprockets_fs/log.rb', line 138 def spec_line @spec_line end |
Instance Method Details
#<=>(r) ⇒ Object
145 146 147 |
# File 'lib/sprockets_fs/log.rb', line 145 def <=>(r) dt <=> r.dt end |
#to_ss ⇒ Object
140 141 142 143 |
# File 'lib/sprockets_fs/log.rb', line 140 def to_ss c = [caller,library].select { |x| x }.join(" ").rpad(25) "#{dt.short} From #{c} | #{spec.rpad(20)}: #{[0...18000]}" end |