arity

meth.arity â fixnum Instance Public methods Returns an indication of the number of arguments accepted by a method. Returns a nonnegative integer for methods that take a fixed number of arguments. For Ruby methods that take a variable number of arguments, returns -n-1, where n is the number of required arguments. For methods written in C, returns -1 if the call takes a variable number of arguments. class C def one; end def two(a); end def three(*a); end def four(a, b

select_year

select_year(date, options = {}, html_options = {}) Instance Public methods Returns a select tag with options for each of the five years on each side of the current, which is selected. The five year radius can be changed using the :start_year and :end_year keys in the options. Both ascending and descending year lists are supported by making :start_year less than or greater than :end_year. The date can also be substituted for a year given as a number. Override the field name using th

new

new(maker) Class Public methods

date_field

date_field(object_name, method, options = {}) Instance Public methods Returns a #text_field of type âdateâ. date_field("user", "born_on") # => <input id="user_born_on" name="user[born_on]" type="date" /> The default value is generated by trying to call âto_dateâ on the object's value, which makes it behave as expected for instances of DateTime and ActiveSupport::TimeWithZone. You can still override that by passing the âvalueâ option explicitly, e.g. @user.born_on = Date.n

invoke_kind

WIN32OLE_METHOD#invoke_kind Instance Public methods Returns the method kind string. The string is âUNKNOWNâ or âPROPERTYâ or âPROPERTYâ or âPROPERTYGETâ or âPROPERTYPUTâ or âPROPERTYPPUTREFâ or âFUNCâ. tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbooks') method = WIN32OLE_METHOD.new(tobj, 'Add') puts method.invoke_kind # => "FUNC"

tuesday?

d.tuesday? â bool Instance Public methods Returns true if the date is Tuesday.

encoding_convert_from

encoding_convert_from(str, enc=None) Class Public methods Alias for: encoding_convertfrom

format

format(clk, form=nil) Class Public methods

build_args

build_args() Class Public methods Arguments used when building gems

getsid

Process.getsid() â integerProcess.getsid(pid) â integer Class Public methods Returns the session ID for for the given process id. If not give, return current process sid. Not available on all platforms. Process.getsid() #=> 27422 Process.getsid(0) #=> 27422 Process.getsid(Process.pid()) #=> 27422