Class: Cakeproto::MaybeInt
- Inherits:
-
Object
- Object
- Cakeproto::MaybeInt
- Defined in:
- lib/bucket_cake/proto_ext/maybe_int.rb
Instance Method Summary collapse
-
#has_value? ⇒ Boolean
For backwards-compatibility and RSpec matchers.
- #value_if_present ⇒ Object
Instance Method Details
#has_value? ⇒ Boolean
For backwards-compatibility and RSpec matchers.
10 11 12 |
# File 'lib/bucket_cake/proto_ext/maybe_int.rb', line 10 def has_value? has_value end |
#value_if_present ⇒ Object
5 6 7 |
# File 'lib/bucket_cake/proto_ext/maybe_int.rb', line 5 def value_if_present value if has_value? end |