module Svnx::Base::Fields::ClassMethods
Public Instance Methods
attr_readers(*symbols)
click to toggle source
# File lib/svnx/base/fields.rb, line 46 def attr_readers(*symbols) what = Array(symbols).flatten attr_reader(*what) end
has_field(name, arg)
click to toggle source
# File lib/svnx/base/fields.rb, line 57 def has_field name, arg @fields ||= Hash.new @fields[name] = arg attr_reader name end
has_fields(fields = Hash.new)
click to toggle source
# File lib/svnx/base/fields.rb, line 51 def has_fields fields = Hash.new fields.each do |name, arg| has_field name, arg end end