class RayyanFormats::Target
Public Class Methods
new()
click to toggle source
# File lib/rayyan-formats-core/target.rb, line 15 def initialize @dict = {} end
Public Instance Methods
method_missing(method_sym, *arguments, &block)
click to toggle source
# File lib/rayyan-formats-core/target.rb, line 4 def method_missing(method_sym, *arguments, &block) # if method name is in the form x= then set dict[:x] to first argument value # otherwise, return dict[:x] if any method_sym.to_s =~ /(.+)=/ if $1 @dict[$1.to_sym] = arguments.first else @dict[method_sym] end end
to_s()
click to toggle source
# File lib/rayyan-formats-core/target.rb, line 19 def to_s @dict.to_s end