lib/jm/dsl/hal_syncer.rb
# Link to a resource
#
# This is a general frontend to define links, that refers to other methods
# depending on it's arguments.
#
# @see #inline_link
# @see #mapper_link
Link to a resource
This is a general frontend to define links, that refers to other methods
depending on it's arguments.
Link to a resource This is a general frontend to define links that refers to other methods depending on it ' s arguments .
def link(rel, template_or_mapper, **args, &block)
        if template_or_mapper.is_a?(String)
          inline_link(rel, template_or_mapper, **args, &block)
        else
          mapper_link(rel, template_or_mapper, **args, &block)
        end
      end
def link ( rel , template_or_mapper , ** args , & block ) if template_or_mapper . is_a? ( String ) inline_link ( rel , template_or_mapper , ** args , & block ) else mapper_link ( rel , template_or_mapper , ** args , & block ) end end
Link to a resource
This is a general frontend to define links, that refers to other methods
depending on it's arguments.
Link to a resource This is a general frontend to define links that refers to other methods depending on it ' s arguments .
rel
template_or_mapper
args
block
see
None
see
None