gregorian?

d.gregorian? â bool Instance Public methods Retunrs true if the date is on or after the day of calendar reform. Date.new(1582,10,15).gregorian? #=> true (Date.new(1582,10,15) - 1).gregorian? #=> false

safe_constantize

safe_constantize(camel_cased_word) Instance Public methods Tries to find a constant with the name specified in the argument string. 'Module'.safe_constantize # => Module 'Test::Unit'.safe_constantize # => Test::Unit The name is assumed to be the one of a top-level constant, no matter whether it starts with â::â or not. No lexical context is taken into account: C = 'outside' module M C = 'inside' C # => 'inside' 'C'.safe_constantize # => 'ou

to_r

str.to_r â rational Instance Public methods Returns a rational which denotes the string form. The parser ignores leading whitespaces and trailing garbage. Any digit sequences can be separated by an underscore. Returns zero for null or garbage string. NOTE: '0.3'.to_r isn't the same as 0.3.to_r. The former is equivalent to '3/10'.to_r, but the latter isn't so. ' 2 '.to_r #=> (2/1) '300/2'.to_r #=> (150/1) '-9.2'.to_r #=> (-46/5) '-9.2e2'.to_r

remove_destroy

remove_destroy(*wins) Instance Public methods

label_tag

label_tag(name = nil, content_or_options = nil, options = nil, &block) Instance Public methods Creates a label element. Accepts a block. Options Creates standard HTML attributes for the tag. Examples label_tag 'name' # => <label for="name">Name</label> label_tag 'name', 'Your name' # => <label for="name">Your name</label> label_tag 'name', nil, class: 'small_label' # => <label for="name" class="small_label">Name</label>

new

new(parent,*args) Class Public methods

trace_vdelete

trace_vdelete(opts,cmd) Instance Public methods Alias for: trace_remove

new

new(src, filename = '-', lineno = 1) Class Public methods Creates a new Ripper::Filter instance, passes parameters src, filename, and lineno to Ripper::Lexer.new The lexer is for internal use only.

colour

colour(fill, border) Instance Public methods Also aliased as: colours, colors, color

save_page

save_page(page) Instance Public methods Writes the ri data for page