Class: DataBindings::Bound::Errors

Inherits:
IndifferentHash show all
Defined in:
lib/data_bindings/bound.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Hashie::Extensions::IndifferentAccess

#convert!, #convert_key, #convert_value, included, #indifferent_access?, #indifferent_default, #indifferent_delete, #indifferent_fetch, #indifferent_key?, #indifferent_update, #indifferent_values_at, #indifferent_writer, inject, inject!

Instance Attribute Details

#baseObject

Returns the value of attribute base.



7
8
9
# File 'lib/data_bindings/bound.rb', line 7

def base
  @base
end

Instance Method Details

#clearObject



17
18
19
20
# File 'lib/data_bindings/bound.rb', line 17

def clear
  super
  @base = nil
end

#join(st = nil) ⇒ Object



9
10
11
# File 'lib/data_bindings/bound.rb', line 9

def join(st = nil)
  (base ? [base].concat(values) : values).join(st)
end

#valid?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/data_bindings/bound.rb', line 13

def valid?
  base.nil? && empty?
end