class RKit::Grid::Base

Attributes

_binding[RW]

Public Class Methods

new(binding) click to toggle source
# File lib/r_kit/grid/base.rb, line 4
def initialize binding
  @_binding = binding
  _binding.mass_assign required_bindings
end

Public Instance Methods

_attributes() click to toggle source
# File lib/r_kit/grid/base.rb, line 18
def _attributes
  raise NotImplementedError, 'Subclasses must implement this method'
end
_h() click to toggle source
# File lib/r_kit/grid/base.rb, line 14
def _h
  _binding.view_context
end
capture() click to toggle source
# File lib/r_kit/grid/base.rb, line 26
def capture
  raise NotImplementedError, 'Subclasses must implement this method'
end
required_bindings() click to toggle source
# File lib/r_kit/grid/base.rb, line 9
def required_bindings
  raise NotImplementedError, 'Subclasses must implement this method'
end
to_s() click to toggle source
# File lib/r_kit/grid/base.rb, line 30
def to_s
  _h.content_tag _tag, _attributes, &method(:capture)
end