class Rubabel::Smarts
Attributes
ob[RW]
Public Class Methods
new(string)
click to toggle source
# File lib/rubabel/smarts.rb, line 8 def initialize(string) @string = string @ob = OpenBabel::OBSmartsPattern.new unless @ob.init(string) raise ArgumentError, "#{string} not a valid SMARTS string" end end
Public Instance Methods
inspect()
click to toggle source
# File lib/rubabel/smarts.rb, line 23 def inspect "<Rubabel::Smarts #{to_s}>" end
to_s()
click to toggle source
# File lib/rubabel/smarts.rb, line 16 def to_s # would like to do the above, but just getting this: # #<SWIG::TYPE_p_std__string:0x000000022ecd70 # @obsmarts.get_smarts.to_s @string end