ceil

ceil(n) Instance Public methods Return the smallest integer greater than or equal to the value, as a BigDecimal. BigDecimal('3.14159').ceil #=> 4 BigDecimal('-9.1').ceil #=> -9 If n is specified and positive, the fractional part of the result has no more than that many digits. If n is specified and negative, at least that many digits to the left of the decimal point will be 0 in the result. BigDecimal('3.14159').ceil(3) #=> 3.142 BigDecimal('13345.234').ceil(-2) #=> 1

tagid

tagid(id) Instance Public methods

railtie_name

railtie_name(name = nil) Class Public methods

fast_generate

fast_generate(obj, opts = nil) Instance Public methods Generate a JSON document from the Ruby data structure obj and return it. This method disables the checks for circles in Ruby objects. WARNING: Be careful not to pass any Ruby data structures with circles as obj argument because this will cause JSON to go into an infinite loop.

generate

generate(obj, opts = nil) Instance Public methods Generate a JSON document from the Ruby data structure obj and return it. state is a JSON::State object, or a Hash like object (responding to to_hash), or an object convertible into a hash by a to_h method, that is used as or to configure a State object. It defaults to a state object, that creates the shortest possible JSON text in one line, checks for circular data structures and doesn't allow NaN, Infinity, and -Infinity. A

checkout

checkout() Instance Public methods Check-out a database connection from the pool, indicating that you want to use it. You should call checkin when you no longer need this. This is done by either returning and leasing existing connection, or by creating a new connection and leasing it. If all connections are leased and the pool is at capacity (meaning the number of currently leased connections is greater than or equal to the size limit set), an ActiveRecord::ConnectionTimeoutError e

restsize

restsize() Instance Public methods s.restsize is equivalent to s.rest_size. This method is obsolete; use rest_size instead.

new

new() Class Public methods

dom_class

dom_class(record_or_class, prefix = nil) Instance Public methods The DOM class convention is to use the singular form of an object or class. dom_class(post) # => "post" dom_class(Person) # => "person" If you need to address multiple instances of the same class in the same view, you can prefix the #dom_class: dom_class(post, :edit) # => "edit_post" dom_class(Person, :edit) # => "edit_person"

mkTextConfig

mkTextConfig(w,x,y,option,value,color) Instance Public methods Next, create some items that allow the text's anchor position to be edited.