Sha256: 705b2c1ae67227f0705ed9d2777d3bb9d9b921818602321134dff269ac09b914

Contents?: true

Size: 602 Bytes

Versions: 12

Compression:

Stored size: 602 Bytes

Contents

## Object

### .default_value
Adds a method with default value

```ruby
class TheClass
  default_value :the_method, 10
end.new.the_method
```

will return

```ruby
10
```

### .default_values
Add several methods with single return value

```ruby
class TheIntermediateChild < TheParent
  default_values :is_child?, :is_final?, true
end.new.is_child?
```

will return

```ruby
true
```

### #is_any?
returns if the object is an instance of any of the given classes

```ruby
1.is_any?(String, Symbol)
```
returns
```ruby
false
```

```ruby
1.is_any?(String, Symbol, Numeric)
```
returns
```ruby
false
```

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
darthjee-core_ext-1.7.4 OBJECT_README.md
darthjee-core_ext-1.7.3 OBJECT_README.md
darthjee-core_ext-1.7.2 OBJECT_README.md
darthjee-core_ext-1.7.1 OBJECT_README.md
darthjee-core_ext-1.7.0 OBJECT_README.md
darthjee-core_ext-1.6.2 OBJECT_README.md
darthjee-core_ext-1.6.1 OBJECT_README.md
darthjee-core_ext-1.6.0 OBJECT_README.md
darthjee-core_ext-1.5.6 OBJECT_README.md
darthjee-core_ext-1.5.5 OBJECT_README.md
darthjee-core_ext-1.5.4 OBJECT_README.md
darthjee-core_ext-1.5.3 OBJECT_README.md