Class: Cakeproto::MaybeInt

Inherits:
Object
  • Object
show all
Defined in:
lib/bucket_cake/proto_ext/maybe_int.rb

Instance Method Summary collapse

Instance Method Details

#has_value?Boolean

For backwards-compatibility and RSpec matchers.

Returns:

  • (Boolean)


10
11
12
# File 'lib/bucket_cake/proto_ext/maybe_int.rb', line 10

def has_value?
  has_value
end

#value_if_presentObject



5
6
7
# File 'lib/bucket_cake/proto_ext/maybe_int.rb', line 5

def value_if_present
  value if has_value?
end