Sha256: 6a1a122db0bee7194c8fd34364cc1edb7abc662ea1a409beaafef2b95637818a

Contents?: true

Size: 621 Bytes

Versions: 2

Compression:

Stored size: 621 Bytes

Contents

--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Initialize Duration class.
- !ruby/struct:SM::Flow::P 
  body: <b>Example</b>
- !ruby/struct:SM::Flow::VERB 
  body: "    d = Duration.new(60 * 60 * 24 * 10 + 120 + 30)\n    =&gt; #&lt;Duration: 1 week, 3 days, 2 minutes and 30 seconds&gt;\n    d = Duration.new(:weeks =&gt; 1, :days =&gt; 3, :minutes =&gt; 2, :seconds =&gt; 30)\n    =&gt; #&lt;Duration: 1 week, 3 days, 2 minutes and 30 seconds&gt;\n"
full_name: Duration::new
is_singleton: true
name: new
params: (seconds_or_attr = 0)
visibility: public

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facets-2.4.3 doc/ri/Duration/new-c.yaml
facets-2.4.2 doc/ri/Duration/new-c.yaml